mirror of
https://github.com/sfall-team/sslc.git
synced 2026-07-27 16:52:49 -07:00
Fix error in FindVarUsage resulting in node indexes getting borked
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ static void FindVarUsage(const Node* node, VarUsage* usage, int varCount) {
|
||||
}
|
||||
break;
|
||||
case T_CALL:
|
||||
if ((++node)->token == T_SYMBOL && ((var = LookupVariable(node)) != -1)) {
|
||||
if ((node + 1)->token == T_SYMBOL && ((var = LookupVariable(node + 1)) != -1)) {
|
||||
MarkVariableRead(usage, var, currstatement, whiledepth);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user