From 770e51609bfe66535a91784d9f5cd2a1c7d9ba5a Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Thu, 6 Aug 2015 18:55:01 +0200 Subject: [PATCH] bind: use GOINTBITS to switch b/w 32b and 64b integers Change-Id: I5fa64fbe78809206e05ffed772a20d92da7b1a88 --- bind/gencpy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind/gencpy.go b/bind/gencpy.go index 979f815..be1b2e8 100644 --- a/bind/gencpy.go +++ b/bind/gencpy.go @@ -43,7 +43,7 @@ const ( return c2py(*addr); \ } -#ifdef __X86_64__ +#if (GOINTBITS == 4) def_cnv( int, PyLong_FromLong, PyLong_AsLong, GoInt) def_cnv(uint, PyLong_FromUnsignedLong, PyLong_AsUnsignedLong, GoUint) #else