Issue 20 in libfixmath: left shift count >= width of type

16 views
Skip to first unread message

libfi...@googlecode.com

unread,
Jan 27, 2013, 2:50:56 PM1/27/13
to libfi...@googlegroups.com
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

libfi...@googlecode.com

unread,
Jan 28, 2013, 10:52:16 AM1/28/13
to libfi...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 20 by Petteri.Aimonen: left shift count >= width of type
http://code.google.com/p/libfixmath/issues/detail?id=20

This issue was closed by revision r86.

Reply all
Reply to author
Forward
0 new messages