Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-03

Win64 and currency

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

LacaK
Hi *,
I encounter strange thing under FPC 2.7.1 and Win64 target.
Can anybody test this program:
========================
const
  test: array[0..0] of currency = (-10);
var
  c:currency;
begin
  c := -10;
  writeln(c);
  writeln(test[0]);
  readln;
end.

========================
Results:
-1.000000000000000000E+01
-1.000000000000000000E-03

Thanks
-Laco.

Pierre Free Pascal
to LacaK

Confirmed,
if you usee -Aas and -al
you will see that
TEST
is just .quad -10
which is wrong of course...
Using -10.0 fixes the bug for now if
you really need this correct fast.

It would be nice if you could submit a bug report.

Pierre Muller

Show quoted text 33 lines
-----Message d'origine----- De : [mailto:fpc-pascal- De la part de LacaK Envoyé : vendredi 30 mars 2012 14:09 À : FPC-Pascal users discussions Objet : [fpc-pascal] Win64 and currency Hi *, I encounter strange thing under FPC 2.7.1 and Win64 target. Can anybody test this program: ======================== const test: array[0..0] of currency = (-10); var c:currency; begin c := -10; writeln(c); writeln(test[0]); readln; end. ======================== Results: -1.000000000000000000E+01 -1.000000000000000000E-03 Thanks -Laco. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Marco van de Voort
to Pierre Free Pascal

In our previous episode, Pierre Free Pascal said:

Show quoted text 9 lines
if you usee -Aas and -al you will see that TEST is just .quad -10 which is wrong of course... Using -10.0 fixes the bug for now if you really need this correct fast. It would be nice if you could submit a bug report.

Note that #21091 is also about win64 and currency.

LacaK
to Marco van de Voort

Thanks!
I posted comment to: http://bugs.freepascal.org/view.php?id=21091 -Laco.

Show quoted text 19 lines
In our previous episode, Pierre Free Pascal said: > if you usee -Aas and -al > you will see that > TEST > is just .quad -10 > which is wrong of course... > Using -10.0 fixes the bug for now if > you really need this correct fast. > > It would be nice if you could submit a bug report. > Note that #21091 is also about win64 and currency. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Honza
to Marco van de Voort: In our previous episode, Pierre Free Pascal said: Note that #21091 is also about win64…

2012/3/30 Marco van de Voort :

Show quoted text 12 lines
In our previous episode, Pierre Free Pascal said: >   if you usee -Aas and -al > you will see that > TEST > is just .quad -10 > which is wrong of course... >   Using -10.0 fixes the bug for now if > you really need this correct fast. > >   It would be nice if you could submit a bug report. Note that #21091 is also about win64 and currency.

Hi Marco,

I'm very sorry for this OT message but as I saw you posting here it reminded me of: I've mailed you off-list some time ago and it seems the message probably didn't ever made it to your inbox (perhaps falsely detected as spam or something). May I please ask you to contact me?

Thank you and once again, I'm really sorry to bring noise into this thread.

Best regards,

Jan