[Kst] Patch: fix error message under 64 bit

Barth Netterfield netterfield at physics.utoronto.ca
Thu Feb 2 18:45:35 CET 2006


Never mind... George committed it...

On February 2, 2006 12:15 pm, Barth Netterfield wrote:
> Any comments on this patch?
>
> cbn
>
> On February 2, 2006 12:16 am, Barth Netterfield wrote:
> > 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
> > _______________________________________________
> > Kst mailing list
> > Kst at kde.org
> > https://mail.kde.org/mailman/listinfo/kst


More information about the Kst mailing list