Sometimes fuzzy variable types can bite you in the ass.
Now, how did I make this mistake in the first place? I’m using the nsIBinaryInputStream interface to read my IP database files and it has a perfectly normally listed read64() method just like the read32() method I was already using. There’s actually not anything wrong with this if you’re using that interface from C, but if you’re using it from JS, then you’re going to hit this problem. In order to hopefully avoid someone else making this same mistake, I have edited the online documentation to add a little warning next to the read64() method about the fact that JS does not currently support 64-bit integers.
Thanks you for your fantastic effort!
This reminds me of one of my first uses of a computer to invert a 115 x 115 matrix in a machine that had a total of 24K (that’s correct 24K) words of memory for the program and all the data.
You’re welcome, and thanks for the thanks. 🙂
Writing Flagfox is sometimes fun and sometimes a pain in the ass, but it’s nice to know that people appreciate the work. (and that someone is actually reading this blog)