Implement array bounds check

This commit is contained in:
Ayke van Laethem
2018-04-21 01:03:05 +02:00
parent 1f0651c84c
commit cf9cea7a0d
2 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func _panic(message interface{}) {
C.exit(1)
}
func boundsCheck(s string, outOfRange bool) {
func boundsCheck(outOfRange bool) {
if outOfRange {
// printstring() here is safe as this function is excluded from bounds
// checking.