boostorg / multi_index

Boost.org multi_index module
http://boost.org/libs/multi_index
45 stars 59 forks source link

Fix cast to prevent -Wconversion warning in g++. #5

Closed mbradle closed 9 years ago

mbradle commented 9 years ago

This change fixes a -Wconversion warning in g++ version 4.9.2 on mac yosemite. For example, in multi_index/example, I run

g++ -Wconversion -I../../.. -o hashed hashed.cpp

and get the warning. With the change, I do not get the warning. I'm guessing that the compiler is being picky since bucket_count() is unsigned. mlf is a float, so I think this still has the intended effect.