]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
runtime: fix makemap calls in __go_construct_map
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 10 Jan 2018 15:04:21 +0000 (15:04 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 10 Jan 2018 15:04:21 +0000 (15:04 +0000)
    The signature of makemap changed with the update to 1.10beta1,
    but I forgot to update the call from C code.

    Reviewed-on: https://go-review.googlesource.com/87135

From-SVN: r256431

gcc/go/gofrontend/MERGE
libgo/runtime/go-construct-map.c

index 18c23cf86fb3a175274b429aeb9459fee9007ac7..6f8fa9c4d0d4a5988362983dedb4f5708db8f4e5 100644 (file)
@@ -1,4 +1,4 @@
-c18c6bd80e0995827ad3396eb1c2401451de88fd
+c22eb29a62b4fd72ad2ea09ebe5fcea5b8ed78b8
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 9a48d5733ead93ab491aa76e9815b09f1be8824d..0e71ba93aa24dbe6f4434a4ebdf79bc2c57845a5 100644 (file)
@@ -11,8 +11,8 @@
 #include "runtime.h"
 #include "go-type.h"
 
-extern void *makemap (const struct __go_map_type *, int64_t hint,
-                     void *, void *)
+extern void *makemap (const struct __go_map_type *, intgo hint,
+                     void *)
   __asm__ (GOSYM_PREFIX "runtime.makemap");
 
 extern void *mapassign (const struct __go_map_type *, void *hmap,
@@ -29,7 +29,7 @@ __go_construct_map (const struct __go_map_type *type,
   uintptr_t i;
   void *p;
 
-  ret = makemap(type, (int64_t) count, NULL, NULL);
+  ret = makemap(type, (intgo) count, NULL);
 
   entries = (const unsigned char *) ventries;
   for (i = 0; i < count; ++i)