lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


You could try:

*(L->stack.top) = *(luaH_getint(arg, i+1));

or:

int blah;
blah= luaH_getint(arg, i+1);
*(L->stack.top) = *blah;

instead.

What are the size of the int's for the compiler? If they are 16bit (small
memory model in Windows?) you'll have problems with pointers, and other
values probably!

N


----- Original Message -----
From: <niki.spahiev@usa.net>
To: Multiple recipients of list <lua-l@tecgraf.puc-rio.br>
Sent: Thursday, July 15, 1999 11:04 AM
Subject: Re: LUA_NUM_TYPE long


>> The error in both cases is
>> Error   : internal compiler error: File: 'PCode.c' Line: 425
>> lbuiltin.c line 304   }
>
>This means error in compiler itself, so check with Metrowerks support.
>
>> *(L->stack.top) = *luaH_getint(arg, i+1);
>> L->stack.top++;
>>
>> That error goes away.
>>
>> Can someone familiar with these data types double check and let me
>know
>> if this is the right thing to do?
>
>This is ok. But i will not trust the compiler.
>