diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/de.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1396,6 +1396,8 @@ impl<'a> Deserializer<'a> { return Err(self.error(start, ErrorKind::NumberInvalid)); } exponent = Some(a); + } else if !suffix.is_empty() { + return Err(self.error(start, ErrorKind::NumberInvalid)); } let mut number = integral |