Browse Source

fixes #53: do not convert integers longer than 8 bytes

Davide Alberani 9 years ago
parent
commit
8c6ec6a15b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      backend.py

+ 4 - 1
backend.py

@@ -80,7 +80,10 @@ class EventManDB(object):
         except:
             pass
         try:
-            return int(obj)
+            i_obj = int(obj)
+            if i_obj > 2**64 - 1:
+                return obj
+            return i_obj
         except:
             pass
         return obj