-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove usage of "lg" in printf format
MinGW on Windows does not "lg". The reason is that MinGW mixes GCC and the MSVC runtime. For GCC a long double is either 96-bit or 128-bit type for long double on x86 or x64 targets (see http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html). However, MSVC uses a 64-bit type (see http://msdn.microsoft.com/en-us/library/9cx8xs15.aspx). That means for MSVC "double" and "long double" are the same. Because of this mismatch, the "l" in "lg", which is safely ignored on Linux and BSD systems is not safely ignored in MSVC systems where GCC is used to compile. This issue does not arise when using VS compiler on Windows.
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters