aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/alg.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-09-24 14:58:34 -0400
committerRuss Cox <rsc@golang.org>2012-09-24 14:58:34 -0400
commit0b08c9483f5f447083616b7b5e6ddf04edffc379 (patch)
tree84860615deb2e8ec6854c15632b2e879deb25cf4 /src/pkg/runtime/alg.c
parent5e3fb887a3a9faf6fac1cd227d4b6b66bef9225a (diff)
downloadgo-0b08c9483f5f447083616b7b5e6ddf04edffc379.tar.xz
runtime: prepare for 64-bit ints
This CL makes the runtime understand that the type of the len or cap of a map, slice, or string is 'int', not 'int32', and it is also careful to distinguish between function arguments and results of type 'int' vs type 'int32'. In the runtime, the new typedefs 'intgo' and 'uintgo' refer to Go int and uint. The C types int and uint continue to be unavailable (cause intentional compile errors). This CL does not change the meaning of int, but it should make the eventual change of the meaning of int on amd64 a bit smoother. Update #2188. R=iant, r, dave, remyoudompheng CC=golang-dev https://golang.org/cl/6551067
Diffstat (limited to 'src/pkg/runtime/alg.c')
-rw-r--r--src/pkg/runtime/alg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/alg.c b/src/pkg/runtime/alg.c
index 4691b5c9c8..c7424bc262 100644
--- a/src/pkg/runtime/alg.c
+++ b/src/pkg/runtime/alg.c
@@ -316,7 +316,7 @@ runtime·strhash(uintptr *h, uintptr s, void *a)
void
runtime·strequal(bool *eq, uintptr s, void *a, void *b)
{
- int32 alen;
+ intgo alen;
USED(s);
alen = ((String*)a)->len;