Re: [cc65] mod operator (signed int, unsigned int)

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-12-12 22:02:56
Hi!

On Thu, Dec 09, 2010 at 11:02:33PM +0100, marcas wrote:
> I think I found a failing testcase for mod operations:

Thanks for the report, that seems indeed to be an error.

> results in  (vice x64)
> 0 mod 1000 is 0
> 232 mod 1000 is 0
> 1000 mod 1000 is 0

Interesting:

        1000    = $3E8
        232     = $E8

So testing with 999 gives:

0 mod 999 is 0
231 mod 999 is 0
999 mod 999 is 0

This seems to be systematic. 

I will have a look at it, thanks again for the report!

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Dec 12 22:03:06 2010

This archive was generated by hypermail 2.1.8 : 2010-12-12 22:03:09 CET