Hi Przemek,
Does it happen with -gc3 only or also with -gc2?
No, only with -gc3. I've only tested this on Darwin PPC,
so I don't know about Darwin Intel, but for sure it
does work for Windows/Intel.
It looks like wrongly set double conversions.
In gencc.c[1096] is:
hb_compGenCString( cargo->yyc, &pFunc->pCode[ lPCodePos + 1 ],
sizeof( double ) );
It's wrong. Change it to:
{
double d = HB_PCODE_MKDOUBLE( &pFunc->pCode[ lPCodePos + 1 ] );
hb_compGenCString( cargo->yyc, &d, sizeof( double ) );
}
It should help.
I've tried this, but it didn't help for either
problems.
Maybe the problem isn't with the generated
code, as Darwin/PPC generates exactly the same C
code as the Windows/Intel Harbour. Yet, the Darwin
is wrong when run.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour