BUG: Fix ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

on win-amd64
Merge pull request #770 from cgohlke/patch-3

BUG: Fix ValueError: Buffer dtype mismatch, expected 'long' but got...