]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 2 Oct 2003 09:01:47 +0000 (09:01 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 2 Oct 2003 09:01:47 +0000 (09:01 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2468 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/codeent.c

index 427a17ef1e74acd9b05429d98feec88f91142ebf..f9e74a11c5a036c17486ba23fe399479a114650f 100644 (file)
@@ -245,8 +245,8 @@ CodeEntry* NewCodeEntry (opc_t OPC, am_t AM, const char* Arg,
     E->OPC    = D->OPC;
     E->AM     = AM;
     E->Size   = GetInsnSize (E->OPC, E->AM);
-    E->Flags  = NumArg (E->Arg, &E->Num)? CEF_NUMARG : 0;
     E->Arg    = GetArgCopy (Arg);
+    E->Flags  = NumArg (E->Arg, &E->Num)? CEF_NUMARG : 0;   /* Needs E->Arg */
     E->Info   = D->Info;
     E->JumpTo = JumpTo;
     E->LI     = UseLineInfo (LI);