talda / libfixmath

Automatically exported from code.google.com/p/libfixmath
0 stars 0 forks source link

left shift count >= width of type #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. avr-gcc -fsyntax-only fix16.c

What is the expected output?

No warning.

What do you see instead?

fix16.c: In function 'fix16_lerp16':
fix16.c:470:5: warning: left shift count >= width of type [enabled by default]
     int64_t tempOut = int64_mul_i32_i32(inArg0, ((1 << 16) - inFract));
     ^
Please provide any additional information below.

Original issue reported on code.google.com by georgjoh...@web.de on 27 Jan 2013 at 7:50

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r86.

Original comment by Petteri.Aimonen on 28 Jan 2013 at 3:52