OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2012-02-08 Andrew MacLeod <amacleod@redhat.com>
[pf3gnuchains/gcc-fork.git]
/
libgo
/
runtime
/
go-strslice.c
diff --git
a/libgo/runtime/go-strslice.c
b/libgo/runtime/go-strslice.c
index
40ccac6
..
8d916c4
100644
(file)
--- a/
libgo/runtime/go-strslice.c
+++ b/
libgo/runtime/go-strslice.c
@@
-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_ms
g ("string index out of bounds");
+
runtime_panicstrin
g ("string index out of bounds");
ret.__data = s.__data + start;
ret.__length = end - start;
return ret;