Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exact 0 crash #1

Open
Gammatester opened this issue Jun 22, 2018 · 0 comments
Open

Exact 0 crash #1

Gammatester opened this issue Jun 22, 2018 · 0 comments

Comments

@Gammatester
Copy link

Exact crashes with argument 0 if compiled as 32-bit, i.e. if 10-byte extendes are available.

D:\TMP>D:\DMX\M18\DCC32 -b exact.dpr
Embarcadero Delphi for Win32 compiler version 25.0
Copyright (c) 1983,2013 Embarcadero Technologies, Inc.
 Velthuis.StrConsts.pas(62)
Velthuis.Numerics.pas(810)
Velthuis.RandomNumbers.pas(307)
Velthuis.Sizes.pas(71)
Velthuis.FloatUtils.pas(317)
bases.inc(94)
Velthuis.BigIntegers.pas(11106)
Velthuis.BigDecimals.pas(2353)
exact.dpr(128) Hint: H2164 Variable 'BD' is declared but never used in 'HexValue
'
exact.dpr(160) Hint: H2164 Variable 'Value' is declared but never used in 'Exact
Value'
exact.dpr(198)
15325 lines, 0.11 seconds, 175528 bytes code, 28412 bytes data.

D:\TMP>exact 0
The value:    0 (0)

32 bit float: 0
Hex:          00000000

64 bit float: 0
Hex:          0000000000000000

EInvalidOp: Invalid floating point operation

Same with Delphi 10.2 Version 25.0.29899.2631 (Update 3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant