Skip to content

Commit 3bf11dd

Browse files
authored
[fix] Resolve tautological bitwise or operation in uVariable.set
1 parent 9fcbc7c commit 3bf11dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ELG_API.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ int set(lua_State * L) {
551551
}
552552
UnitexString* varname = lua_checkudata_cast(L, varname_index, UnitexString);
553553

554-
if (vartype | DIC_VARIABLE) {
554+
if (vartype & DIC_VARIABLE) {
555555
// param2: the dictionary variable
556556
UnitexDicEntry* entry = lua_checkudata_cast(L, 3, UnitexDicEntry);
557557

0 commit comments

Comments
 (0)