diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-11-28 11:37:53 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-11-28 11:37:53 -0600 |
| commit | 691e7d80e5c5c7c099859d240633fe6bbe91f9f5 (patch) | |
| tree | bafa1f8cb4238cd1284f4fd4887bf0e6bb90ff5b | |
| parent | 7344042029bf6319219c11b318372f55904c6491 (diff) | |
| download | nimterop-691e7d80e5c5c7c099859d240633fe6bbe91f9f5.tar.gz nimterop-691e7d80e5c5c7c099859d240633fe6bbe91f9f5.zip | |
Fix uint32
| -rw-r--r-- | nimterop/getters.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nimterop/getters.nim b/nimterop/getters.nim index a402610..f638edc 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -30,7 +30,7 @@ proc getNodeValIf*(node: TSNode, esym: string): string = proc getLineCol*(node: TSNode): tuple[line, col: int] = result.line = 1 result.col = 1 - for i in 0 .. node.tsNodeStartByte()-1: + for i in 0 .. node.tsNodeStartByte().int-1: if gStateRT.code[i] == '\n': result.col = 0 result.line += 1 |
