[Kst] extragear/graphics/kst/src/datasources/planck

Eli Fidler eli at staikos.net
Fri Jul 14 19:28:01 CEST 2006


SVN commit 562402 by fidler:

fix format string


 M  +2 -2      planckobj.cpp  


--- trunk/extragear/graphics/kst/src/datasources/planck/planckobj.cpp #562401:562402
@@ -63,7 +63,7 @@
   char range[128];
   Planck::ObjectGroup *g = findGroup(_group);
   assert(g);
-  snprintf(range, 127, "Begin=%lld\nEnd=%lld", *g->firstIndex, *g->firstIndex);
+  snprintf(range, 127, "Begin=" PIOLONG_FMT "\nEnd=" PIOLONG_FMT, *g->firstIndex, *g->firstIndex);
 
   long n = PIORead_1(const_cast<char*>("TIMES_OF_SAMPLES"), const_cast<char*>("Written"), const_cast<char*>("PIODOUBLE"), range, &g->_group, &obj, &MyData, &MyDataFlag);
 
@@ -84,7 +84,7 @@
   PIOObject *obj = 0L;
   char range[128];
   long n;
-  snprintf(range, 127, "Begin=%lld\nEnd=%lld", idx, idx);
+  snprintf(range, 127, "Begin=" PIOLONG_FMT "\nEnd=" PIOLONG_FMT, idx, idx);
   double buf[1];
   Planck::ObjectGroup *g = findGroup(_group);
   assert(g);


More information about the Kst mailing list