Opened 10 years ago

Closed 10 years ago

#7022 closed Bugs (fixed)

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)

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 (2)

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

Download all attachments as: .zip

Change History (7)

by g.gupta@…, 10 years ago

Attachment: date_generators.cpp added

Fix for the reported Bug.

by g.gupta@…, 10 years ago

Attachment: date_generators_7022.patch added

Patch file for the reported Bug.

comment:1 by viboes, 10 years ago

Description: modified (diff)

comment:2 by viboes, 10 years ago

Description: modified (diff)

comment:3 by Marshall Clow, 10 years ago

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

comment:4 by viboes, 10 years ago

Milestone: To Be DeterminedBoost 1.52.0

comment:5 by Marshall Clow, 10 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.