bind: use GOINTBITS to switch b/w 32b and 64b integers

Change-Id: I5fa64fbe78809206e05ffed772a20d92da7b1a88
This commit is contained in:
Sebastien Binet 2015-08-06 18:55:01 +02:00
parent 086ef0f72f
commit 770e51609b
1 changed files with 1 additions and 1 deletions

View File

@ -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