From b39c10b81306aeeefc066ec7b1f0e23de9448c21 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 13 Apr 2011 21:00:59 +0000 Subject: 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. From-SVN: r172396 --- libgo/runtime/go-int-array-to-string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libgo/runtime/go-int-array-to-string.c') diff --git a/libgo/runtime/go-int-array-to-string.c b/libgo/runtime/go-int-array-to-string.c index c16589f..ec07b87 100644 --- a/libgo/runtime/go-int-array-to-string.c +++ b/libgo/runtime/go-int-array-to-string.c @@ -10,11 +10,11 @@ #include "malloc.h" struct __go_string -__go_int_array_to_string (const void* p, size_t len) +__go_int_array_to_string (const void* p, int len) { const int *ints; - size_t slen; - size_t i; + int slen; + int i; unsigned char *retdata; struct __go_string ret; unsigned char *s; @@ -79,7 +79,7 @@ __go_int_array_to_string (const void* p, size_t len) } } - __go_assert ((size_t) (s - retdata) == slen); + __go_assert (s - retdata == slen); return ret; } -- cgit v1.1