[Kst] Patch: fix error message under 64 bit
Barth Netterfield
netterfield at astro.utoronto.ca
Thu Feb 2 06:16:30 CET 2006
This patch fixes the error message under 64 bit (where size_t is 64 bits).
Index: kstdatacollection.cpp
===================================================================
--- kstdatacollection.cpp (revision 504750)
+++ kstdatacollection.cpp (working copy)
@@ -68,7 +68,8 @@
meminfo();
unsigned long bFree = S(kb_main_free + kb_main_buffers + kb_main_cached);
if (size > bFree) {
- qDebug("Tried to allocate too much memory! (Wanted %u, had %lu)", size,
bFree);
+ unsigned long sz = size;
+ qDebug("Tried to allocate too much memory! (Wanted %lu, had %lu)", sz,
bFree);
return 0L;
}
#endif
@@ -81,7 +82,8 @@
meminfo();
unsigned long bFree = S(kb_main_free + kb_main_buffers + kb_main_cached);
if (size > bFree) {
- qDebug("Tried to allocate too much memory! (Wanted %u, had %lu)", size,
bFree);
+ unsigned long sz = size;
+ qDebug("Tried to allocate too much memory! (Wanted %lu, had %lu)", sz,
bFree);
return 0L;
}
#endif
More information about the Kst
mailing list