Opened 11 years ago

Closed 8 years ago

#6694 closed Bugs (fixed)

cstdint.hpp and integer.hpp don't work correctly on vxWorks 6.3

Reported by: Ben Craig <ben.craig@…> Owned by: viboes
Milestone: Boost 1.58.0 Component: integer
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

cstdint.hpp attempts to figure out how to declare the INT64_C and UINT64_C macros by looking at the values of other declarations like _LLONG_MAX. For _LLONG_MAX, it incorrectly compares against 264, instead of 263. It should also look at _ULLONG_MAX, and compare it to 264.

integer.hpp guards some usages of integer_traits on 64 bit types, but it did not guard it with BOOST_NO_INT64_T.

I have attached a patch to correct both of these issues.

Attachments (1)

int64.patch (2.4 KB ) - added by Ben Craig <ben.craig@…> 11 years ago.
Tweaks to integer.hpp and cstdint.hpp

Download all attachments as: .zip

Change History (6)

by Ben Craig <ben.craig@…>, 11 years ago

Attachment: int64.patch added

Tweaks to integer.hpp and cstdint.hpp

comment:1 by viboes, 8 years ago

See #10969 for the Boost.Config part (cstdint.hpp)

comment:2 by viboes, 8 years ago

Owner: changed from Daryle Walker to viboes
Status: newassigned

comment:5 by viboes, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.