ce5f13cdff
fgsch@ pval@ ok
42 lines
2.4 KiB
Plaintext
42 lines
2.4 KiB
Plaintext
$OpenBSD: patch-ipret_c,v 1.3 2003/06/12 13:47:44 brad Exp $
|
|
--- ipret.c.orig Tue May 20 13:31:14 2003
|
|
+++ ipret.c Wed Jun 4 08:57:15 2003
|
|
@@ -3252,22 +3252,22 @@ void for3(js_context*context)
|
|
*/
|
|
debug("For3 vracim identifier\n");
|
|
if(!context->current->arg[6])
|
|
-nebo_skrtnem_sirkou: while(!context->current->arg[6] && ((int)context->current->arg[5])<HASHNUM)
|
|
+nebo_skrtnem_sirkou: while(!context->current->arg[6] && ((intptr_t)context->current->arg[5])<HASHNUM)
|
|
{
|
|
- context->current->arg[6]=((plns*)((lns*)context->current->arg[3])->value)->ns[(int)context->current->arg[5]];
|
|
+ context->current->arg[6]=((plns*)((lns*)context->current->arg[3])->value)->ns[(intptr_t)context->current->arg[5]];
|
|
/* co tim chtel basnik rict ?? */
|
|
/* Basnik: context->ptr->arg[3] je typu lns*, jeho value je plns* a my
|
|
koukneme do namespacu pod timto plns (to znamena pointer na localnamespace)
|
|
a to konkretne do context->current->arg[5]-te pozice. */
|
|
/*(int)context->current->arg[5]=(int)context->current->arg[5]+1;*/
|
|
- context->current->arg[5]=(void *)((int)context->current->arg[5]+1);
|
|
+ context->current->arg[5]=(void *)((intptr_t)context->current->arg[5]+1);
|
|
}
|
|
else { context->current->arg[6]=((lns*)context->current->arg[6])->next;
|
|
- while(!context->current->arg[6] && ((int)context->current->arg[5])<HASHNUM)
|
|
- { context->current->arg[6]=((plns*)((lns*)context->current->arg[3])->value)->ns[(int)context->current->arg[5]];
|
|
+ while(!context->current->arg[6] && ((intptr_t)context->current->arg[5])<HASHNUM)
|
|
+ { context->current->arg[6]=((plns*)((lns*)context->current->arg[3])->value)->ns[(intptr_t)context->current->arg[5]];
|
|
/* co tim chtel basnik rict ?? */
|
|
/*(int)context->current->arg[5]=(int)context->current->arg[5]+1;*/
|
|
- context->current->arg[5]=(void *)((int)context->current->arg[5]+1);
|
|
+ context->current->arg[5]=(void *)((intptr_t)context->current->arg[5]+1);
|
|
}
|
|
}
|
|
if(!context->current->arg[6])
|
|
@@ -3292,7 +3292,7 @@ nebo_skrtnem_sirkou: while(!context->cu
|
|
{ context->current->arg[6]=((lns*)context->current->arg[6])->next;
|
|
goto nebo_skrtnem_sirkou;
|
|
}
|
|
- pna=context->namespace[((int)context->current->arg[5])-1];
|
|
+ pna=context->namespace[((intptr_t)context->current->arg[5])-1];
|
|
while(pna && (pna->klic!=((lns*)context->current->arg[6])->identifier/HASHNUM))pna=pna->next;
|
|
if(!pna){ my_internal("Kalim mimo misu!\n",context);
|
|
retval=js_mem_alloc(sizeof(abuf));
|