소스 검색

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

Davide Alberani 9 년 전
부모
커밋
8c6ec6a15b
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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