Project

General

Profile

Actions

Bug #17172

closed

Passing a complex number to Complex.polar occurs assertion failed when NDEBUG is undefined

Added by mrkn (Kenta Murata) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.0.0dev (2020-09-15T22:45:01Z fix_complex_polar 344304c89f) [x86_64-linux]
[ruby-core:100020]

Description

$ build-debug/ruby -e "p Complex.polar(1, Complex(1, 0))"
Assertion Failed: ../complex.c:637:f_complex_polar:!RB_TYPE_P(y, T_COMPLEX)
ruby 3.0.0dev (2020-09-15T22:45:01Z fix_complex_polar 344304c89f) [x86_64-linux]
Actions #2

Updated by Anonymous over 3 years ago

  • Status changed from Open to Closed

Applied in changeset git|68b5f14d536c1a81c63412a9f3701380c9bc116c.


Fix assertion failed in Complex.polar without NDEBUG (#3551)

Fixes [Bug #17172].

Actions

Also available in: Atom PDF

Like0
Like0Like0