Comments (3)
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.
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.
$ 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)
- Can you add hex file support for TI C28x DSP? HOT 7
- TypeError while loading from TemporaryFile (Python 3) HOT 2
- hexdiff.py not working on Ubuntu 19.10 HOT 7
- The binary limitation of bin2hex is 4Kbytes. HOT 3
- Option to insert 'Extended Segment Address' record type instead of 'Extended Linear Address' HOT 6
- Starting Address record line is always the first line, but in original file it was last line HOT 11
- tostring bug when using Python 3.9 HOT 14
- Merge fails on two IntelHex16bit files... HOT 1
- A [0:0] slice will return the entire contents, when it should return a empty object HOT 1
- Array attribute HOT 2
- list(ih) causes the Python interpreter to hang up HOT 1
- Is it possible to get rid of those padding byte in list(ih)? HOT 8
- padding byte not retained in slices HOT 1
- Check two IntelHex objects equality HOT 7
- intelhex hangs on using `in` operator HOT 2
- CS:IP entry point calculation seems to be incorrect HOT 2
- Swapping of bytes HOT 2
- bin2hex.py adds extra random byte HOT 2
- Search doesn't appear to work on the readthedocs site.
- Documentation for hex2bin function is not generated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intelhex.