summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-append.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-13 21:00:59 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-13 21:00:59 +0000
commit9581e91dbb7fa66fee457ad404e908d3d4130ad6 (patch)
tree32a57ad9ca89c95394a45e92649f097c96b50924 /libgo/runtime/go-append.c
parent4c35e34cb7b64a3351bdf41eb63cffb51307fb18 (diff)
downloadgcc-9581e91dbb7fa66fee457ad404e908d3d4130ad6.tar.gz
Unify handling of runtime support functions.
This introduces the new approach, and rewrites the lowering code which uses runtime functions. The code which calls runtime functions at GENERIC conversion time is not yet rewritten. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172396 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/go-append.c')
-rw-r--r--libgo/runtime/go-append.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/runtime/go-append.c b/libgo/runtime/go-append.c
index 91493b1b78d..e501f3066a9 100644
--- a/libgo/runtime/go-append.c
+++ b/libgo/runtime/go-append.c
@@ -19,18 +19,18 @@ __go_append (struct __go_open_array, void *, size_t, size_t)
__attribute__ ((no_split_stack));
struct __go_open_array
-__go_append (struct __go_open_array a, void *bvalues, size_t bcount,
- size_t element_size)
+__go_append (struct __go_open_array a, void *bvalues, uintptr_t bcount,
+ uintptr_t element_size)
{
- size_t ucount;
+ uintptr_t ucount;
int count;
if (bvalues == NULL || bcount == 0)
return a;
- ucount = (size_t) a.__count + bcount;
+ ucount = (uintptr_t) a.__count + bcount;
count = (int) ucount;
- if ((size_t) count != ucount || count <= a.__count)
+ if ((uintptr_t) count != ucount || count <= a.__count)
__go_panic_msg ("append: slice overflow");
if (count > a.__capacity)