Opened 13 years ago
Closed 13 years ago
#3308 closed Bugs (fixed)
gregorian does not use 32 bit int on 64 bit system
| Reported by: | Owned by: | az_sw_dude | |
|---|---|---|---|
| Milestone: | Boost 1.40.0 | Component: | date_time |
| Version: | Boost 1.39.0 | Severity: | Showstopper |
| Keywords: | date_time gregorian date 64bit-issue | Cc: |
Description
The gregorian date datatype is supposed to use a 32-bit integer for storing the date information. At least this is said so in the documentation. Unfortunately the implementation uses "unsigned long" which results in a 64-bit value on 64-bit systems.
I am able to propose attached patch. Please comment and correct!
Attachments (1)
Change History (4)
by , 13 years ago
| Attachment: | greg_calender_32bit.patch added |
|---|
comment:1 by , 13 years ago
comment:2 by , 13 years ago
comment:3 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Proposed patch using boost::integer.hpp