[metapost] Bugs in mpost 1.202 (and less)?
Steve Checkoway
s at pahtak.org
Mon Jun 8 02:15:37 CEST 2009
On Jun 6, 2009, at 2:53 AM, Taco Hoekwater wrote:
> The endless loop is an artifact of 32-bit integer wrapping, where
> 32767+1 == -32767. Because of this, it loops endlessly through all the
> values from -32767 upto 32767.
16-bit signed integers have a range of -32768 to 32767 so 32767+1 =
-32768. 32-bit integers have a range of -2147483648 to 2147483647.
> This problem should automatically go away with the next major metapost
> release, when the internal calculations will be replaced by an
> arbitrary
> precision library.
Seems like in the interem, you could get away with using 32- or 64-bit
integers unless something relies on having a range of 16-bit integers,
that is.
--
Steve Checkoway
"Anyone who says that the solution is to educate the users
hasn't ever met an actual user." -- Bruce Schneier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2407 bytes
Desc: not available
URL: <http://tug.org/pipermail/metapost/attachments/20090607/20f5c201/attachment.bin>
More information about the metapost
mailing list