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

on win-amd64