Skip to content

Exact 0 crash #1

Description

@Gammatester

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions