stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STDCXX-763) [LWG #231] Inconsistency between LWG issue 231 and src/punct.cpp.
Date Thu, 17 Apr 2008 10:11:21 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Farid Zaripov closed STDCXX-763.
--------------------------------


All changes are merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752

> [LWG #231] Inconsistency between LWG issue 231 and src/punct.cpp.
> -----------------------------------------------------------------
>
>                 Key: STDCXX-763
>                 URL: https://issues.apache.org/jira/browse/STDCXX-763
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>             Fix For: 4.2.1
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> For additional information see this thread:
> http://www.mail-archive.com/dev@stdcxx.apache.org/msg00213.html
> The proposed patch below:
> {noformat}
> Index: src/punct.cpp
> ===================================================================
> --- src/punct.cpp       (revision 631177)
> +++ src/punct.cpp       (working copy)
> @@ -619,9 +619,7 @@
>          const int fltfld = fmtflags & _RWSTD_IOS_FLOATFIELD;
>  
>          // follows resolution of lwg issue 231
> -        if (   (   _RWSTD_IOS_FIXED      == fltfld
> -                || _RWSTD_IOS_SCIENTIFIC == fltfld)
> -            && prec >= 0 || prec > 0) {
> +        if (0 <= prec) {
>  
>              // 7.19.6.1, p5 of C99 specifies that, when given using the
>              // asterisk, negative precision is treated the same as if
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message