Advertisement
Kapa3a

Fix long int too large to convert

Nov 15th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | Fixit | 0 0
  1. eroare :
  2.  
  3. LoginWindow.__LoadScript.LoadObject - <type 'exceptions.OverflowError'>:Python int too large to convert to C long
  4.  
  5.  
  6. sau(or)
  7.  
  8.  
  9.  :: OverflowError
  10.  :: :
  11.  :: long int too large to convert
  12.  
  13.  
  14. Fix :
  15.  
  16.  
  17. I. Mergi in  sursa binary:
  18. • ScriptLib\PythonUtils.cpp
  19.  
  20. *Cauta
  21. #include "StdAfx.h"
  22. #include "PythonUtils.h"
  23.  
  24. *Adauga sub
  25. #define PyLong_AsLong PyLong_AsLongLong
  26. #define PyLong_AsUnsignedLong PyLong_AsUnsignedLongLong
  27.  
  28.  
  29.  
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement