• Russ Cox's avatar
    time: prepare for 64-bit ints · edce6349
    Russ Cox authored
    The code was trying to interpret a uint32 n as a signed quantity
    and then store it in an int. For this, int(n) currently works, but when
    int becomes 64 bits one must write int(int32(n)) instead, to get
    the 32-bit sign extension.
    
    Update #2188.
    
    R=golang-dev, nigeltao
    CC=golang-dev
    https://golang.org/cl/6551068
    edce6349
Name
Last commit
Last update
..
example_test.go Loading commit data...
format.go Loading commit data...
internal_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_read.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...