Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 20 by
georgjoh...@web.de: left shift count >= width of type
http://code.google.com/p/libfixmath/issues/detail?id=20
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.
Attachments:
bug.diff 567 bytes