aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/de.rs b/src/de.rs
index 6b7c43b..b23f03f 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -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