]> Cypherpunks repositories - gostls13.git/commit
time: prepare for 64-bit ints
authorRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 03:04:28 +0000 (23:04 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 03:04:28 +0000 (23:04 -0400)
commitedce6349639e321c3b1a34036a8fbc08ad363cd3
treed72de338d6907d77dd7496b47964040782042e9a
parent5d50dbc55ae5fa7240d94068ffc466b2327ebae3
time: prepare for 64-bit ints

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
src/pkg/time/zoneinfo_read.go