# HG changeset patch # User rubidium # Date 2009-04-30 12:11:51 # Node ID 53a67e77b8b3322536ff642600e7a7f9702a0cfd # Parent 98931d2141b092818382865822f63ac279672e88 (svn r16188) -Fix [FS#2874] (r16124): printing the first 4 bytes worth of a 8 byte integer causes some unwanted side effects when the system is not little-endian. diff --git a/src/strings.cpp b/src/strings.cpp --- a/src/strings.cpp +++ b/src/strings.cpp @@ -203,7 +203,7 @@ static char *FormatNumber(char *buff, in num = num % divisor; } if (tot |= quot || i == 19) { - buff += seprintf(buff, last, "%i", quot); + buff += seprintf(buff, last, "%i", (int)quot); if ((i % 3) == 1 && i != 19) buff = strecpy(buff, separator, last); }