Hi, All !

I think I have found yet another bug.

Here is the sample program:

unsigned long long l;
unsigned long k;

int main()
{
        k=l/1000216L;
}

And here is the output of the compiler:

D:\msp430\$>msp430-gcc -std=gnu99 -mmcu=msp430x147 -O test.c
D:\DOCUME~1\9335~1\LOCALS~1\Temp/ccUnaaaa.s: Assembler messages:
D:\DOCUME~1\9335~1\LOCALS~1\Temp/ccUnaaaa.s:27: Error: value out of range: 
1000216. use #lo() or #hi()
D:\DOCUME~1\9335~1\LOCALS~1\Temp/ccUnaaaa.s:28: Error: value out of range: 
1000216. use #lo() or #hi()

How do I divide long long by long ?

All the best,
Oleg.

Reply via email to