diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-06 18:28:21 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-06 18:28:21 +0000 |
commit | c19ea58f4c22885970a0bfbed4086d53df4418da (patch) | |
tree | 89ff7fdde0dc578287fb6c80a46652eaf78f3ddf /libgo/runtime/go-new-map.c | |
parent | 0b6b034c45b5e378d9fcc2459b2d6872c7e5ef00 (diff) | |
download | gcc-c19ea58f4c22885970a0bfbed4086d53df4418da.tar.gz |
compiler, libgo: Fixes to prepare for 64-bit int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/go-new-map.c')
-rw-r--r-- | libgo/runtime/go-new-map.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/runtime/go-new-map.c b/libgo/runtime/go-new-map.c index 096856e234c..c289bc0bea0 100644 --- a/libgo/runtime/go-new-map.c +++ b/libgo/runtime/go-new-map.c @@ -106,10 +106,11 @@ __go_map_next_prime (uintptr_t n) struct __go_map * __go_new_map (const struct __go_map_descriptor *descriptor, uintptr_t entries) { - intgo ientries; + int32 ientries; struct __go_map *ret; - ientries = (intgo) entries; + /* The master library limits map entries to int32, so we do too. */ + ientries = (int32) entries; if (ientries < 0 || (uintptr_t) ientries != entries) runtime_panicstring ("map size out of range"); |