Opened 10 years ago

Last modified 8 years ago

#7655 new Bugs

signed/unsigned mismatch warning in inplace_solver

Reported by: Tobias Loew Owned by: Gunter
Milestone: To Be Determined Component: uBLAS
Version: Boost 1.52.0 Severity: Cosmetic
Keywords: Cc:

Description

MSVC 9 emits a warning "C4018: '<' : signed/unsigned mismatch" in line 2165 (inplace_solve) in triangular.hpp

Attachments (1)

triangular.hpp.7655.patch (516 bytes ) - added by Kenneth Porter <shiva+boost@…> 10 years ago.
Patch against 1.53.0 boost/numeric/ublas/triangular.hpp

Download all attachments as: .zip

Change History (3)

by Kenneth Porter <shiva+boost@…>, 10 years ago

Attachment: triangular.hpp.7655.patch added

Patch against 1.53.0 boost/numeric/ublas/triangular.hpp

comment:1 by Kenneth Porter <shiva+boost@…>, 10 years ago

The code is comparing a difference_type to a size_type. A brief inspection of the code suggests that the difference_type value can go negative, so casting the size_type to difference_type should be correct.

comment:2 by Albert Gil <albert.gil@…>, 8 years ago

Just to let you know that I've also succesfully applied this patch in version 1.55.0, for GCC 4.7.2 (x64).

Note: See TracTickets for help on using tickets.