refacotring 2?
[pspp] / src / language / expressions / generate.py
index ffe780a3c35ab9cbfdd07f016dcc857890605a06..50e1f4d1c9518d5e41c1a8f5fe8a22dfbe890e41 100644 (file)
@@ -233,7 +233,7 @@ class Op:
         circumstances.
 
         If this operation has a minimum number of valid arguments,
-        'min_valid_src' should be an an expression that evaluates to
+        'min_valid_src' should be an expression that evaluates to
         the minimum number of valid arguments for this operation.
 
         """
@@ -870,7 +870,8 @@ def generate_optimize_inc():
             type_ = arg.type_
             c_type = type_.c_type
             if arg.idx is None:
-                func = 'get_%s_arg' % type_.atom
+                func = ('get_integer_arg' if type_.name == 'integer'
+                        else 'get_%s_arg' % type_.atom)
                 decls += ['%sarg_%s = %s (node, %s)'
                           % (c_type, name, func, arg_idx)]
             else: