Kaydet (Commit) 36bc8e21 authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

really support long type...

üst 4c895583
......@@ -38,7 +38,7 @@ dbus_py_get_signature(PyObject *obj)
return 'i';
}
else if (PyLong_Check(obj)) {
return 'l';
return 'x';
}
else if (PyFloat_Check(obj)) {
return 'd';
......@@ -78,7 +78,7 @@ dbus_py_get_object_signature(PyObject *obj)
case 's':
case 'b':
case 'i':
case 'l':
case 'x':
case 'd':
size = 2;
sign_content = malloc(size);
......@@ -192,7 +192,7 @@ dbus_py_export(DBusMessageIter *iter, PyObject *obj)
p.i32 = PyInt_AsLong(obj);
e = dbus_message_iter_append_basic(iter, DBUS_TYPE_INT32, &p.i32);
break;
case 'l':
case 'x':
p.i64 = PyLong_AsLong(obj);
e = dbus_message_iter_append_basic(iter, DBUS_TYPE_INT64, &p.i64);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment