* python/python.c (gdbpy_solib_name): Use gdb_py_longest and
[deliverable/binutils-gdb.git] / gdb / python / py-param.c
index efef0d025d776387eab28d454c921a27be2d3441..22aa91d8dba364935b404d79a0a00caf8e6732c2 100644 (file)
@@ -232,7 +232,9 @@ set_parameter_value (parmpy_object *self, PyObject *value)
            return -1;
          }
 
-       l = PyInt_AsLong (value);
+       if (! gdb_py_int_as_long (value, &l))
+         return -1;
+
        if (self->type == var_uinteger)
          {
            ok = (l >= 0 && l <= UINT_MAX);
This page took 0.023076 seconds and 4 git commands to generate.