]> git.sur5r.net Git - cc65/blobdiff - src/ca65/expr.c
Changed the object file and library format. There is now an additional
[cc65] / src / ca65 / expr.c
index 0c638c6422fb04a27e3a50f1893d9ed8f43a6343..42c90d1542d3b6ea615b89fc677419b846f7b88f 100644 (file)
@@ -1603,7 +1603,7 @@ void WriteExpr (ExprNode* Expr)
         case EXPR_SYMBOL:
            /* Maybe we should use a code here? */
            CHECK (SymIsImport (Expr->V.Sym));  /* Safety */
-           ObjWrite16 (GetSymIndex (Expr->V.Sym));
+           ObjWriteVar (GetSymIndex (Expr->V.Sym));
            break;
 
         case EXPR_SECTION: