diff -ur gazpacho-0.6.2-orig/gazpacho/kiwiutils.py gazpacho-0.6.2/gazpacho/kiwiutils.py --- gazpacho-0.6.2-orig/gazpacho/kiwiutils.py 2006-01-10 04:12:40.314703200 -0800 +++ gazpacho-0.6.2/gazpacho/kiwiutils.py 2006-01-10 04:14:57.228889080 -0800 @@ -22,6 +22,7 @@ # Johan Dahlin # +import struct import sys import gobject @@ -189,9 +190,12 @@ dict[name] = (flags, retval, args) -_MAX_INT = sys.maxint -_MAX_FLOAT = 1e+308 -_MAX_LONG = 18446744073709551616L +def _max(c): + return (1 << (8 * struct.calcsize(c)-1))-1 + +_MAX_INT = int(_max('i')) +_MAX_FLOAT = float(_max('f')) +_MAX_LONG = long(_max('l')) def gproperty(name, type, *args, **kwargs): """ Only in gazpacho-0.6.2/gazpacho: kiwiutils.py.orig