From 60cd74aed482fa040c479dfedf7330b3ca28c467 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Thu, 16 Oct 2008 16:31:35 +0000 Subject: [PATCH] Use sb4 instead of int in order to handle 64-bit platforms properly. --- Variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Variable.c b/Variable.c index 90af19c..f1c94bd 100644 --- a/Variable.c +++ b/Variable.c @@ -473,7 +473,7 @@ static udt_VariableType *Variable_TypeByValue( return &vt_Float; if (PyBuffer_Check(value)) { const void *buffer; - if (PyObject_AsReadBuffer(value, &buffer, (int*) size) < 0) + if (PyObject_AsReadBuffer(value, &buffer, (sb4*) size) < 0) return NULL; if (*size > MAX_BINARY_BYTES) return &vt_LongBinary;