From 4c377f21f9706e39c1f2c964b99f32e8bff6fdd0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 8 Nov 2014 20:45:43 -0800 Subject: [PATCH] Mark symbols as read when using sizeof(). --- sourcepawn/compiler/sc3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sourcepawn/compiler/sc3.cpp b/sourcepawn/compiler/sc3.cpp index 1d70fe67..1a067b6b 100644 --- a/sourcepawn/compiler/sc3.cpp +++ b/sourcepawn/compiler/sc3.cpp @@ -1675,6 +1675,7 @@ static int hier2(value *lval) clear_value(lval); lval->ident=iCONSTEXPR; lval->constval=1; /* preset */ + markusage(sym, uREAD); if (sym->ident==iARRAY || sym->ident==iREFARRAY) { int level; symbol *idxsym=NULL;