Skip to content

Commit

Permalink
attempt to fix windows build/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ndjensen committed Jun 18, 2018
1 parent 658f9ac commit 10f24be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/c/Include/jep_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#define JLOCAL_REFS 16

/* Python 2 compatibility */
#ifndef Py_hash_t
#if PY_MAJOR_VERSION < 3
#define Py_hash_t long
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/main/c/Jep/python/jep_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ JNIEXPORT jlong JNICALL Java_jep_python_PyObject_hashCode
(JNIEnv *env, jobject obj, jlong tstate, jlong pyobj) {
JepThread *jepThread;
PyObject *pyObject;
long hash = -1;
Py_hash_t hash = -1;

jepThread = (JepThread *) tstate;
if (!jepThread) {
Expand Down

0 comments on commit 10f24be

Please sign in to comment.