Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
Forgot to comment out a hack for OS X.
Missed a pointer cast to avoid compiler warnings.
Thanks to spahl for both.
  • Loading branch information
Paul Davis committed May 11, 2009
1 parent 10282bf commit a245d0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions THANKS
Expand Up @@ -4,3 +4,4 @@ Thanks For Patches and Pointers
benoitc - build system tweaks, compiling on OpenBSD
Mark Lee - Patch for iterating JS arrays in Python
sk89q - Info for FreeBSD builds
spahl - Heads up on the signal hack and fix for a compiler warning.
11 changes: 7 additions & 4 deletions setup.py
Expand Up @@ -16,10 +16,13 @@
# I haven't the sligthest, but this appears to fix
# all those EINTR errors. Pulled and adapted for OS X
# from twisted bug #733
import ctypes
import signal
libc = ctypes.CDLL("libc.dylib")
libc.siginterrupt(signal.SIGCHLD, 0)
#
# Definitely forgot to comment this out before distribution.
#
# import ctypes
# import signal
# libc = ctypes.CDLL("libc.dylib")
# libc.siginterrupt(signal.SIGCHLD, 0)

import os
import subprocess as sp
Expand Down
2 changes: 1 addition & 1 deletion spidermonkey/jsarray.c
Expand Up @@ -91,7 +91,7 @@ Array_set_item(Object* self, Py_ssize_t idx, PyObject* val)
PyObject*
Array_iterator(Object* self)
{
return PySeqIter_New(self);
return PySeqIter_New((PyObject*) self);
}

static PyMemberDef Array_members[] = {
Expand Down

0 comments on commit a245d0a

Please sign in to comment.