1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-22 08:18:33 +00:00

Complete adding parser to scripting.

This commit is contained in:
Calvin Rose
2017-05-03 19:57:06 -04:00
parent 631bb0cb63
commit c6e9f24f82
7 changed files with 145 additions and 8 deletions

View File

@@ -191,7 +191,7 @@ GstInteger gst_real_to_integer(GstReal x) {
}
GstInteger gst_startrange(GstInteger raw, uint32_t len) {
if (raw > len)
if (raw >= len)
return -1;
if (raw < 0)
return len + raw;