Fix ValueError: Buffer dtype mismatch, expected 'INTP' but got 'long' on win-amd64
Merge pull request #3017 from cgohlke/patch-2

Fix ValueError: Buffer dtype mismatch, expected 'INTP' but got 'long' on win-amd64