4 * Revision 1.1 2001/04/04 05:43:37 wang
5 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
7 * Revision 1.1 1998/07/02 17:16:35 bnv
14 /* ------------------- Lc2d ------------------------- */
16 Lc2d( const PLstr to
, const PLstr from
, long n
)
28 if (n
<1 || n
>sizeof(long)) n
= sizeof(long);
34 negative
= LSTR(*to
)[n
-1] & 0x80; /* msb = 1 */
38 n
= MIN(n
,LLEN(*from
));
40 for (i
=n
-1; i
>=0; i
--)
41 num
= (num
<< 8) | ((byte
)(LSTR(*to
)[i
]) & 0xFF);
46 num
= num
- (1L << (n
*8));