mojoshader_assembler.c
changeset 1057 4c5cb78c6cdd
parent 994 561ee5138f4e
child 1096 b04fca1befb8
equal deleted inserted replaced
1056:73c697a7e950 1057:4c5cb78c6cdd
   425     } // else
   425     } // else
   426 
   426 
   427     // "c[5]" is the same as "c5", so if the token is done, see if next is '['.
   427     // "c[5]" is the same as "c5", so if the token is done, see if next is '['.
   428     if ((neednum) && (ctx->tokenlen == 0))
   428     if ((neednum) && (ctx->tokenlen == 0))
   429     {
   429     {
       
   430         const int tlen = ctx->tokenlen;  // we need to protect this for later.
   430         if (nexttoken(ctx) == ((Token) '['))
   431         if (nexttoken(ctx) == ((Token) '['))
   431             neednum = 0;  // don't need a number on register name itself.
   432             neednum = 0;  // don't need a number on register name itself.
   432         pushback(ctx);
   433         pushback(ctx);
       
   434         ctx->tokenlen = tlen;
   433     } // if
   435     } // if
   434 
   436 
   435     if (neednum)
   437     if (neednum)
   436     {
   438     {
   437         uint32 ui32 = 0;
   439         uint32 ui32 = 0;