Issue 23 in libfixmath: fix16_str_unittests fails (MSYS/windows)

3 views
Skip to first unread message

libfi...@googlecode.com

unread,
Apr 18, 2013, 11:16:40 PM4/18/13
to libfi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 23 by mariano....@gmail.com: fix16_str_unittests fails
(MSYS/windows)
http://code.google.com/p/libfixmath/issues/detail?id=23

What steps will reproduce the problem?
1. cd unittests
2. make
3. fix16_str_unittests

What is the expected output? What do you see instead?
Expected no issues. Instead there's a bunch of "Value (fix16_t)X gave Y,
should be 0.00000", where all lines say "should be 0.00000".

What version of the product are you using? On what operating system?
Using MSYS under win7x64
$ gcc --version
gcc.exe (GCC) 4.7.2
$ uname -a
MINGW32_NT-6.1 user 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

Please provide any additional information below.

Replacing "%0.5lf" with "%0.5f" in the following line in
fix16_str_unittests.x seems to fix the issue (line 91 currently):
snprintf(goodbuf, 13, "%0.5lf", fvalue);

According to
http://stackoverflow.com/questions/4264127/correct-format-specifier-for-double-in-printf
specifying "l" in printf has no effect, so it should be safe to remove it.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

libfi...@googlecode.com

unread,
Apr 19, 2013, 3:36:56 PM4/19/13
to libfi...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 23 by Petteri.Aimonen: fix16_str_unittests fails
(MSYS/windows)
http://code.google.com/p/libfixmath/issues/detail?id=23

This issue was closed by revision r89.
Reply all
Reply to author
Forward
0 new messages