Fix Python 3 build error on 32-bit hosts
[deliverable/binutils-gdb.git] / gdb / python / py-value.c
index 4c4d36ec4b47df54a8c218d448d3f1c2211faf60..5a1377756a1080736700298354730e982cc1da15 100644 (file)
@@ -895,10 +895,10 @@ valpy_fetch_lazy (PyObject *self, PyObject *args)
 
 /* Calculate and return the address of the PyObject as the value of
    the builtin __hash__ call.  */
-static long
+static Py_hash_t
 valpy_hash (PyObject *self)
 {
-  return (long) (intptr_t) self;
+  return (intptr_t) self;
 }
 
 enum valpy_opcode
This page took 0.024024 seconds and 4 git commands to generate.