[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Thu Feb 2 12:18:56 CET 2006
SVN commit 504802 by staikos:
Apply Barth's 64-bit patch with a const added.
M +4 -2 kstdatacollection.cpp
--- trunk/extragear/graphics/kst/kst/kstdatacollection.cpp #504801:504802
@@ -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);
+ const 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);
+ const 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