Modify

Ticket #7022 (closed Bugs: fixed)

Opened 22 months ago

Last modified 19 months ago

Prevent tool Bug Fix.

Reported by: g.gupta@… Owned by: az_sw_dude
Milestone: Boost 1.52.0 Component: date_time
Version: Boost 1.50.0 Severity: Problem
Keywords: Cc: yogen.saini@…

Description (last modified by viboes) (diff)

It is Prevent tool Bug Fix.In file boost/trunk/libs/date_time/src/gregorian/date_generators.cpp

the IF condition:

   if(ele >= 1 || ele <= 5) {
      return _nth_as_str[ele];
      } 
    else {
      return _nth_as_str[0];
      }

is not used properly. Instead of "|| " in this if condition it should be "&&". Only by use of "&&" this condition makes sense.

Attachments

date_generators.cpp Download (915 bytes) - added by g.gupta@… 22 months ago.
Fix for the reported Bug.
date_generators_7022.patch Download (643 bytes) - added by g.gupta@… 22 months ago.
Patch file for the reported Bug.

Change History

Changed 22 months ago by g.gupta@…

Fix for the reported Bug.

Changed 22 months ago by g.gupta@…

Patch file for the reported Bug.

comment:1 Changed 22 months ago by viboes

  • Description modified (diff)

comment:2 Changed 22 months ago by viboes

  • Description modified (diff)

comment:3 Changed 22 months ago by marshall

(In [79186]) Refs #7022; will close when merged to release

comment:4 Changed 21 months ago by viboes

  • Milestone changed from To Be Determined to Boost 1.52.0

comment:5 Changed 19 months ago by marshall

  • Status changed from new to closed
  • Resolution set to fixed

(In [80697]) Merge bug fix to trunk; fixes #7022

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.