Skip to content

Commit a245d0a

Browse files
author
Paul Davis
committed
Minor fixes.
Forgot to comment out a hack for OS X. Missed a pointer cast to avoid compiler warnings. Thanks to spahl for both.
1 parent 10282bf commit a245d0a

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

THANKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Thanks For Patches and Pointers
44
benoitc - build system tweaks, compiling on OpenBSD
55
Mark Lee - Patch for iterating JS arrays in Python
66
sk89q - Info for FreeBSD builds
7+
spahl - Heads up on the signal hack and fix for a compiler warning.

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
# I haven't the sligthest, but this appears to fix
1717
# all those EINTR errors. Pulled and adapted for OS X
1818
# from twisted bug #733
19-
import ctypes
20-
import signal
21-
libc = ctypes.CDLL("libc.dylib")
22-
libc.siginterrupt(signal.SIGCHLD, 0)
19+
#
20+
# Definitely forgot to comment this out before distribution.
21+
#
22+
# import ctypes
23+
# import signal
24+
# libc = ctypes.CDLL("libc.dylib")
25+
# libc.siginterrupt(signal.SIGCHLD, 0)
2326

2427
import os
2528
import subprocess as sp

spidermonkey/jsarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Array_set_item(Object* self, Py_ssize_t idx, PyObject* val)
9191
PyObject*
9292
Array_iterator(Object* self)
9393
{
94-
return PySeqIter_New(self);
94+
return PySeqIter_New((PyObject*) self);
9595
}
9696

9797
static PyMemberDef Array_members[] = {

0 commit comments

Comments
 (0)