mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Small bug fix. Strict parsers were complaining... gcc4. :/
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@984 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8eaac6ced3
commit
63b7296630
4 changed files with 24 additions and 24 deletions
|
@ -651,7 +651,7 @@ reeval:
|
|||
|
||||
//array/structure reading/riting.
|
||||
case OP_GLOBALADDRESS:
|
||||
OPC->_int = (int)(&((int)(OPA->_int)) + OPB->_int);
|
||||
OPC->_int = (int)(&OPA->_int) + OPB->_int);
|
||||
break;
|
||||
case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors)
|
||||
OPC->_int = OPA->_int + OPB->_int*4;
|
||||
|
@ -663,12 +663,12 @@ reeval:
|
|||
case OP_LOADA_ENT:
|
||||
case OP_LOADA_S:
|
||||
case OP_LOADA_FNC:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADA_V:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
@ -683,7 +683,7 @@ reeval:
|
|||
OPC->_int = OPA->_int - OPB->_int;
|
||||
break;
|
||||
case OP_LOADP_C: //load character from a string
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + (int)OPB->_float);
|
||||
ptr = (eval_t *)(OPA->_int + (int)OPB->_float);
|
||||
OPC->_float = *(unsigned char *)ptr;
|
||||
break;
|
||||
case OP_LOADP_I:
|
||||
|
@ -692,12 +692,12 @@ reeval:
|
|||
case OP_LOADP_ENT:
|
||||
case OP_LOADP_S:
|
||||
case OP_LOADP_FNC:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADP_V:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
|
|
@ -651,7 +651,7 @@ reeval:
|
|||
|
||||
//array/structure reading/riting.
|
||||
case OP_GLOBALADDRESS:
|
||||
OPC->_int = (int)(&((int)(OPA->_int)) + OPB->_int);
|
||||
OPC->_int = (int)(&OPA->_int) + OPB->_int);
|
||||
break;
|
||||
case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors)
|
||||
OPC->_int = OPA->_int + OPB->_int*4;
|
||||
|
@ -663,12 +663,12 @@ reeval:
|
|||
case OP_LOADA_ENT:
|
||||
case OP_LOADA_S:
|
||||
case OP_LOADA_FNC:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADA_V:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
@ -683,7 +683,7 @@ reeval:
|
|||
OPC->_int = OPA->_int - OPB->_int;
|
||||
break;
|
||||
case OP_LOADP_C: //load character from a string
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + (int)OPB->_float);
|
||||
ptr = (eval_t *)(OPA->_int + (int)OPB->_float);
|
||||
OPC->_float = *(unsigned char *)ptr;
|
||||
break;
|
||||
case OP_LOADP_I:
|
||||
|
@ -692,12 +692,12 @@ reeval:
|
|||
case OP_LOADP_ENT:
|
||||
case OP_LOADP_S:
|
||||
case OP_LOADP_FNC:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADP_V:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
|
|
@ -651,7 +651,7 @@ reeval:
|
|||
|
||||
//array/structure reading/riting.
|
||||
case OP_GLOBALADDRESS:
|
||||
OPC->_int = (int)(&((int)(OPA->_int)) + OPB->_int);
|
||||
OPC->_int = (int)(&OPA->_int) + OPB->_int);
|
||||
break;
|
||||
case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors)
|
||||
OPC->_int = OPA->_int + OPB->_int*4;
|
||||
|
@ -663,12 +663,12 @@ reeval:
|
|||
case OP_LOADA_ENT:
|
||||
case OP_LOADA_S:
|
||||
case OP_LOADA_FNC:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADA_V:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
@ -683,7 +683,7 @@ reeval:
|
|||
OPC->_int = OPA->_int - OPB->_int;
|
||||
break;
|
||||
case OP_LOADP_C: //load character from a string
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + (int)OPB->_float);
|
||||
ptr = (eval_t *)(OPA->_int + (int)OPB->_float);
|
||||
OPC->_float = *(unsigned char *)ptr;
|
||||
break;
|
||||
case OP_LOADP_I:
|
||||
|
@ -692,12 +692,12 @@ reeval:
|
|||
case OP_LOADP_ENT:
|
||||
case OP_LOADP_S:
|
||||
case OP_LOADP_FNC:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADP_V:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
|
|
@ -651,7 +651,7 @@ reeval:
|
|||
|
||||
//array/structure reading/riting.
|
||||
case OP_GLOBALADDRESS:
|
||||
OPC->_int = (int)(&((int)(OPA->_int)) + OPB->_int);
|
||||
OPC->_int = (int)(&OPA->_int) + OPB->_int);
|
||||
break;
|
||||
case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors)
|
||||
OPC->_int = OPA->_int + OPB->_int*4;
|
||||
|
@ -663,12 +663,12 @@ reeval:
|
|||
case OP_LOADA_ENT:
|
||||
case OP_LOADA_S:
|
||||
case OP_LOADA_FNC:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADA_V:
|
||||
ptr = (eval_t *)(&((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(&OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
@ -683,7 +683,7 @@ reeval:
|
|||
OPC->_int = OPA->_int - OPB->_int;
|
||||
break;
|
||||
case OP_LOADP_C: //load character from a string
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + (int)OPB->_float);
|
||||
ptr = (eval_t *)(OPA->_int + (int)OPB->_float);
|
||||
OPC->_float = *(unsigned char *)ptr;
|
||||
break;
|
||||
case OP_LOADP_I:
|
||||
|
@ -692,12 +692,12 @@ reeval:
|
|||
case OP_LOADP_ENT:
|
||||
case OP_LOADP_S:
|
||||
case OP_LOADP_FNC:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->_int = ptr->_int;
|
||||
break;
|
||||
|
||||
case OP_LOADP_V:
|
||||
ptr = (eval_t *)(((int)(OPA->_int)) + OPB->_int);
|
||||
ptr = (eval_t *)(OPA->_int + OPB->_int);
|
||||
OPC->vector[0] = ptr->vector[0];
|
||||
OPC->vector[1] = ptr->vector[1];
|
||||
OPC->vector[2] = ptr->vector[2];
|
||||
|
|
Loading…
Reference in a new issue