fix compiler error when long is not 64 bits (Visual C++)