OSDN Git Service

2012-02-08 Andrew MacLeod <amacleod@redhat.com>
[pf3gnuchains/gcc-fork.git] / libgo / runtime / go-strslice.c
index 40ccac6..8d916c4 100644 (file)
@@ -20,7 +20,7 @@ __go_string_slice (struct __go_string s, int start, int end)
   if (end == -1)
     end = len;
   if (start > len || end < start || end > len)
-    __go_panic_msg ("string index out of bounds");
+    runtime_panicstring ("string index out of bounds");
   ret.__data = s.__data + start;
   ret.__length = end - start;
   return ret;