diff options
Diffstat (limited to 'src/runtime/string.go')
| -rw-r--r-- | src/runtime/string.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/string.go b/src/runtime/string.go index c84f673427..0809f89bc1 100644 --- a/src/runtime/string.go +++ b/src/runtime/string.go @@ -225,7 +225,7 @@ func rawbyteslice(size int) (b []byte) { // rawruneslice allocates a new rune slice. The rune slice is not zeroed. func rawruneslice(size int) (b []rune) { - if uintptr(size) > maxMem/4 { + if uintptr(size) > maxmem/4 { gothrow("out of memory") } mem := goroundupsize(uintptr(size) * 4) |
