imaginary
type to _Bool
This issue has been automatically converted from the original issue lists and some formatting may not have been preserved.
Authors: WG14 Convener
Date: 2003-02-26
Reference document: ISO/IEC WG14 N1002
Submitted against: C99
Status: Fixed
Fixed in: C99 TC2
Cross-references: 0447
Converted from: summary-c99.htm, dr_285.htm
6.3.1.2 is clear that any non-zero scalar value gets turned into 1 by a _Bool
conversion.
However, G.4.2 says that when an imaginary
value is converted to a real, the
result is zero.
Change G.4.2 to:
When a value of
imaginary
type is converted to a real type other than_Bool
, the result is a positive zero. See 6.3.1.2.
Comment from WG14 on 2004-03-17:
Change G.4.2 to:
When a value of
imaginary
type is converted to a real type other than_Bool
, the result is a positive zero. See 6.3.1.2.