From 994b0e2fcb762bfbde2121a2baedd533d97a2475 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 23 Aug 2019 09:55:15 -0700 Subject: Allow zero-prefixed float exponents. (#322) --- src/de.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/de.rs b/src/de.rs index 4c3acc5..f9a3a4c 100644 --- a/src/de.rs +++ b/src/de.rs @@ -1436,11 +1436,11 @@ impl<'a> Deserializer<'a> { let (a, b) = if suffix.len() == 1 { self.eat(Token::Plus)?; match self.next()? { - Some((_, Token::Keylike(s))) => self.parse_integer(s, false, false, 10)?, + Some((_, Token::Keylike(s))) => self.parse_integer(s, false, true, 10)?, _ => return Err(self.error(start, ErrorKind::NumberInvalid)), } } else { - self.parse_integer(&suffix[1..], true, false, 10)? + self.parse_integer(&suffix[1..], true, true, 10)? }; if b != "" { return Err(self.error(start, ErrorKind::NumberInvalid)); -- cgit v1.2.3