summaryrefslogtreecommitdiff
path: root/src/cmd/gc/const.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-08-03 17:25:15 -0700
committerRuss Cox <rsc@golang.org>2008-08-03 17:25:15 -0700
commit8b06420233d33b1cddc5709ecf34a106fb709882 (patch)
tree77abd882c6047963b22d61229dd95e9356208875 /src/cmd/gc/const.c
parentb389a6f476e3a8c0432d749be945958bb2d8a0df (diff)
downloadgolang-8b06420233d33b1cddc5709ecf34a106fb709882.tar.gz
make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.
these guys really really want long to be 32-bits, so ,s/long/int32/ (and then manual fixup). still passes all tests. (i started out looking for just those longs that needed to be int32 instead, and it was just too hard to track them down one by one.) the longs were rare enough that i don't think it will cause integration problems. R=ken OCL=13787 CL=13789
Diffstat (limited to 'src/cmd/gc/const.c')
-rw-r--r--src/cmd/gc/const.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gc/const.c b/src/cmd/gc/const.c
index 36d7b4936..2ee03c98a 100644
--- a/src/cmd/gc/const.c
+++ b/src/cmd/gc/const.c
@@ -107,7 +107,7 @@ void
evconst(Node *n)
{
Node *nl, *nr;
- long len;
+ int32 len;
String *str;
int wl, wr;
@@ -378,7 +378,7 @@ defaultlit(Node *n)
int
cmpslit(Node *l, Node *r)
{
- long l1, l2, i, m;
+ int32 l1, l2, i, m;
char *s1, *s2;
l1 = l->val.sval->len;