[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Feb 13 21:04:14 CET 2004


CVS commit by staikos: 

make it compile with newer gcc


  M +2 -2      enodes.cpp   1.5


--- kdeextragear-2/kst/kst/enodes.cpp  #1.4:1.5
@@ -212,5 +212,5 @@ static double step(double x) {
 static struct {
   const char *name;
-  void *func;
+  double (*func)(double);
 } FTable[] = {
   {"abs",  &fabs},
@@ -242,5 +242,5 @@ Function::Function(char *name, ArgumentL
   for (int i = 0; FTable[i].name; ++i) {
     if (strcasecmp(FTable[i].name, name) == 0) {
-      _f = FTable[i].func;
+      _f = (void*)FTable[i].func;
       break;
     }





More information about the Kst mailing list