Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

Error 512313 in [basic.zir]

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

Error 512313 in [basic.zir]

this code snippet was working okay with previous Ziron

        // check if next token is 'ptr'  
        if ( Ziron_PeekNextToken() ==  zirUserIdent ) 
         {
            Ziron_GetNextToken(); 
            if(strCmp('ptr',strLower(Ziron_GetStringValue())) == True)
             {
                H_strcat(@tmp,'*'); // this line gives the error
             } 
            if ( Ziron_PeekNextToken() ==  zirUserIdent ) 
            {
            
            }  
         }    

but with version 1.1.32.3 i got this error

[170,15]: Error 512313 in [basic.zir] Code: }

any help please?

http://www.freewebs.com/ogremagic/index.htm

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

try reverse the function call inside strCmp

strCmp(strLower(...., 'ptr');
Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok i have found that.

Ziron does not allow embty block

Exm.

  if(eax == 1)
   {
      //empty block here
   }

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

I have fixed this for next release, thanks for report :)