• Hiroshi Ioka's avatar
    cmd/cgo: support large unsigned macros · 7555a45d
    Hiroshi Ioka authored
    Currently, cgo converts integer macros into int64 if it's possible.
    As a result, some macros which satisfy
    
    math.MaxInt64 < x <= math.MaxUint64
    
    will lose their original values.
    
    This CL introduces the new probe to check signs,
    so we can handle signed ints and unsigned ints separately.
    
    Fixes #20369
    
    Change-Id: I002ba452a82514b3a87440960473676f842cc9ee
    Reviewed-on: https://go-review.googlesource.com/43476Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    7555a45d
Name
Last commit
Last update
..
errors Loading commit data...
fortran Loading commit data...
gmp Loading commit data...
life Loading commit data...
nocgo Loading commit data...
stdio Loading commit data...
test Loading commit data...
testasan Loading commit data...
testcarchive Loading commit data...
testcshared Loading commit data...
testgodefs Loading commit data...
testplugin Loading commit data...
testsanitizers Loading commit data...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...