Linux 64-bit Lazarus 1.9.0 r57948M FPC 3.1.1 x86_64-linux-qt gives
1.00E+00 1
What is dissassembly for:
i:=Int64(c);?
I have for Win32:
test_curr_int64.lpr:19i1 := Int64(c);
0040158D a100c04200 mov0x42c000,%eax
00401592 a310c04200
Am 17.05.2018 um 23:26 schrieb Anthony Walter:
I am working with some a glib library that expects gboolean to be
positive 1 for true, yet FPC emits -1 for true. Is there a compiler
flag to force boolean types to emit 1 instead of -1? If so, would
there possibly be any side effects with other pa
I am working with some a glib library that expects gboolean to be positive
1 for true, yet FPC emits -1 for true. Is there a compiler flag to force
boolean types to emit 1 instead of -1? If so, would there possibly be any
side effects with other pascal code?
Hi,
Linux 64-bit Lazarus 1.9.0 r57948M FPC 3.1.1 x86_64-linux-qt gives
1.00E+00 1
V.__
Od: LacaK
Komu: FPC-Pascal users discussions
Datum: 17.05.2018 13:33
Předmět: [fpc-pascal] Currency and Int64 casting
Hi,
Hi,
consider following program:
var
c: currency;
begin
c := 1;
writeln(c,' ',Int64(c));
readln;
end.
FPC 3.0.4
On Win32/x86 I get: 1, 1000 (what I am expecting)
On Win64/x86_64 I get: 1, 1
Is is as expected ?
Is there safe way for both platforms how to get 1000 (beside that I can
u