Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alsoft:non-free
unace
08-ulonglong-printf.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 08-ulonglong-printf.patch of Package unace
Author: Michael Karcher <debian@mkarcher.dialup.fu-berlin.de> Description: This patch fixes a portability issue about printing big numbers. --- unace-nonfree-2.5.orig/source/apps/exe/convert/convert.c +++ unace-nonfree-2.5/source/apps/exe/convert/convert.c @@ -31,7 +31,7 @@ INT StrLen, ByteSize = (ByteSize / 1000000) * 100000000 + (ByteSize / 1000) * 10000 + ByteSize % 1000; - sprintf(Str, "%lld ", ByteSize); + sprintf(Str, "%llu ", (unsigned long long)ByteSize); StrLen = strlen(Str) - 1; Str[StrLen] = UNITCHARS[UnitCharNumber]; @@ -117,12 +117,12 @@ INT UnitCharNumber; if (UnitCharNumber) { - sprintf(SizeStr, "%8lld ", Size); + sprintf(SizeStr, "%8llu ", (unsigned long long)Size); SizeStr[strlen(SizeStr) - 1] = UNITCHARS[UnitCharNumber]; } else { - sprintf(SizeStr, "%9lld", Size); + sprintf(SizeStr, "%9llu", (unsigned long long)Size); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor