numpy/numpy — pull request #227 by cgohlke (2012-03-05 23:47:12+00:00)
Title: Use ssize_t instead of long in mtrand

Mtrand uses C long types for array indices and sizes, which is problematic on the win-amd64 platform where long is 32 bit. The issue was reported and discussed on the Numpy-discussion mailing list as part of the thread "advanced indexing bug with huge arrays?"

Please review the proposed changes. It builds and tests OK using msvc9 compiler.