1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Fix subtle range bug in String.substring (uint => int64)

Was looking for negative in the following calculation:

uint(0) - uint(3) => uint(0)
This commit is contained in:
Robert Krimen
2013-02-20 16:18:29 -08:00
parent ec902a6452
commit bf322e56ee
4 changed files with 41 additions and 35 deletions

View File

@@ -45,6 +45,8 @@ TEST := -v --run _underscore_
TEST := -v --run _parseFloat
TEST := -v --run _underscore_utility
TEST := -v --run Array_splice
TEST := -v --run String_substring
TEST := -v --run String_slice
TEST := .
test: test-i