]> git.sur5r.net Git - cc65/blobdiff - src/cc65/symentry.h
Fixed a weird bug. Some special where found to be register variables when they
[cc65] / src / cc65 / symentry.h
index b1f8647035d0de46ebe2f0c7d269d708e86f1de5..530fc9ce1a8ec42e3c4f72ace19b131d17ef6c0a 100644 (file)
@@ -189,11 +189,12 @@ INLINE int SymIsRef (const SymEntry* Sym)
 #if defined(HAVE_INLINE)
 INLINE int SymIsRegVar (const SymEntry* Sym)
 /* Return true if the given entry is a register variable */
+/* ### HACK! Fix the ugly type flags! */
 {
-    return ((Sym->Flags & SC_REGISTER) == SC_REGISTER);
+    return ((Sym->Flags & (SC_REGISTER|SC_TYPE)) == SC_REGISTER);
 }
 #else
-#  define SymIsRegVar(Sym)      (((Sym)->Flags & SC_REGISTER) == SC_REGISTER)
+#  define SymIsRegVar(Sym)      (((Sym)->Flags & (SC_REGISTER|SC_TYPE)) == SC_REGISTER)
 #endif
 
 void CvtRegVarToAuto (SymEntry* Sym);