[Nickle] Nickle compiler bug
keithp at keithp.com
Thu Sep 16 18:17:47 PDT 2004
Around 10 o'clock on Sep 16, bart at po8.org wrote:
> Take a look at the just-checked-in
> examples/google-puzzle.5c. It outputs an even answer :-),
Note that the output number has a leading zero, causing 'atoi' to
interpret it in octal.
I fixed it. Now it outputs an odd number, but not the right one. Given
the small values involved, checking actual primality works just fine and
does generate the right answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 228 bytes
Desc: not available
Url : /pipermail/nickle/attachments/20040916/eddd5e23/attachment.pgp
More information about the Nickle