Add syntax mode radio button to syntax editor window.
[pspp] / src / ui / gui / psppire-scanf.c
index 1673eea965382d445b4dc0968bfe852a3bfca6a4..88128a3090a717f959502fcb1623ced90d39f974 100644 (file)
@@ -107,11 +107,11 @@ guts (PsppireScanf *scanf)
       int width = 0;
 
       if (dir.precision_start && dir.precision_end)
-       precision = strtol (dir.precision_start + 1,
+       precision = g_ascii_strtoll (dir.precision_start + 1,
                            (char **) &dir.precision_end, 10);
 
       if (dir.width_start && dir.width_end)
-       width = strtol (dir.width_start, (char **) &dir.width_end, 10);
+       width = g_ascii_strtoll (dir.width_start, (char **) &dir.width_end, 10);
 
       if (dir.dir_start > s)
        ship_label (scanf, &s, &scanf->d, i);
@@ -238,7 +238,7 @@ static GObjectClass *parent_class = NULL;
 static void
 psppire_scanf_dispose (GObject *obj)
 {
-  PsppireScanf *w = (PsppireScanf *)obj;
+  PsppireScanf *w = PSPPIRE_SCANF (obj);
 
   if (w->dispose_has_run)
     return;