projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure significand remains an integer in Python3 json parser
[cascardo/ovs.git]
/
python
/
ovs
/
json.py
diff --git
a/python/ovs/json.py
b/python/ovs/json.py
index
42e697d
..
ff986ea
100644
(file)
--- a/
python/ovs/json.py
+++ b/
python/ovs/json.py
@@
-280,7
+280,7
@@
class Parser(object):
significand *= 10
pow10 -= 1
while pow10 < 0 and significand % 10 == 0:
- significand /= 10
+ significand /
/
= 10
pow10 += 1
if (pow10 == 0 and
((not sign and significand < 2 ** 63) or