Ported the Python module for usage of 64-bit numbers.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 14 Feb 2008 05:26:23 +0000 (06:26 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 14 Feb 2008 05:26:23 +0000 (06:26 +0100)
lib/python/dolmod.c

index 1418174..fd026fa 100644 (file)
@@ -90,6 +90,9 @@ static PyObject *resp_intresp(struct respobj *self)
            case 3:
                PyList_SetItem(sl, i, PyFloat_FromDouble(ires->argv[i].val.flnum));
                break;
+           case 4:
+               PyList_SetItem(sl, i, PyLong_FromLongLong(ires->argv[i].val.lnum));
+               break;
            }
        }
        dc_freeires(ires);