shithub: rgbds

Download patch

ref: 363458c3bc06cefb0221c6300a850d266cb26168
parent: b299f6fb3b8fcf24dc339caf0074707befdbfbce
author: ISSOtm <[email protected]>
date: Wed May 6 15:55:37 EDT 2020

Fix semi-unused variable in lexer.c

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -487,9 +487,9 @@
 {
 	while (lex->tzName) {
 		struct sLexString **ppHash;
-		uint32_t hash;
+		uint32_t hash = lexcalchash(lex->tzName);
 
-		ppHash = &tLexHash[hash = lexcalchash(lex->tzName)];
+		ppHash = &tLexHash[hash];
 		while (*ppHash)
 			ppHash = &((*ppHash)->pNext);