Giter Site home page Giter Site logo

Comments (3)

bialix avatar bialix commented on September 28, 2024 1

Yes, my guess about your system was right. I suppose that's somehow related to your compiler and/or OS system libs.

I can only put additional check in the tests to skip tests if type(1<<32) is not long.

Would you like to provide a patch?

from intelhex.

bialix avatar bialix commented on September 28, 2024

Thank you for reporting this.

This error is harmless, and only indicates that my assumptions about xrange behavior is not quite correct on your system. I'd suspect that's due 64-bit platform, but on with 64-bit Windows build of Python 2.7.13 - I still get OverflowError with my original statement.

Can you check on your python what's the result of the following expression:

type(2684625744)

from intelhex.

mt-caret avatar mt-caret commented on September 28, 2024
$ python
Python 2.7.13 (default, Dec 17 2016, 20:05:07) 
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> type(2684625744)
<type 'int'>

Looks like I start getting 'long's from 1 << 63:

$ python                                                                                                
Python 2.7.13 (default, Dec 17 2016, 20:05:07)                                                                       
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> type(1<<32)                                                                                                      
<type 'int'>                                                                                                         
>>> type(1<<62)                                                                                                      
<type 'int'>                                                                                                         
>>> type(1<<63)                                                                                                      
<type 'long'>                                                                                                        
>>>

My machine is running on Linux x86_64 (NixOS), if that helps

from intelhex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.