]> granicus.if.org Git - python/commitdiff
fix dummy macro
authorBenjamin Peterson <benjamin@python.org>
Sat, 10 Sep 2016 00:46:24 +0000 (17:46 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sat, 10 Sep 2016 00:46:24 +0000 (17:46 -0700)
Include/pydtrace.h
Modules/_datetimemodule.c

index 4c06d0ef79ca0fb1b3e66572ecc8d5401006d8b3..a033772470eeb7c207c1a16746225881577b2400 100644 (file)
@@ -22,7 +22,7 @@
 
 /* Without DTrace, compile to nothing. */
 
-#define PyDTrace_LINE(arg0, arg1, arg2, arg3) do ; while (0)
+#define PyDTrace_LINE(arg0, arg1, arg2) do ; while (0)
 #define PyDTrace_FUNCTION_ENTRY(arg0, arg1, arg2)  do ; while (0)
 #define PyDTrace_FUNCTION_RETURN(arg0, arg1, arg2) do ; while (0)
 #define PyDTrace_GC_START(arg0)               do ; while (0)
index 6597cb7ad576eb53d5f3a5485eec3345924eb681..13c9d2ff4f9e62deb6079ad93fb1b6783e28937e 100644 (file)
@@ -2841,9 +2841,10 @@ static PyObject *date_getstate(PyDateTime_Date *self);
 static Py_hash_t
 date_hash(PyDateTime_Date *self)
 {
-    if (self->hashcode == -1)
+    if (self->hashcode == -1) {
         self->hashcode = generic_hash(
             (unsigned char *)self->data, _PyDateTime_DATE_DATASIZE);
+    }
 
     return self->hashcode;
 }