File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/boost/serialization Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ void load(
216
216
int which;
217
217
typedef typename boost::variant<Types...>::types types;
218
218
ar >> BOOST_SERIALIZATION_NVP (which);
219
- if (which >= sizeof ...(Types)){
219
+ if (static_cast <std:: size_t >( which) >= sizeof ...(Types)){
220
220
// this might happen if a type was removed from the list of variant types
221
221
boost::serialization::throw_exception (
222
222
boost::archive::archive_exception (
@@ -238,7 +238,7 @@ void load(
238
238
int which;
239
239
typedef typename boost::variant<Types...>::types types;
240
240
ar >> BOOST_SERIALIZATION_NVP (which);
241
- if (which >= sizeof ...(Types)){
241
+ if (static_cast <std:: size_t >( which) >= sizeof ...(Types)){
242
242
// this might happen if a type was removed from the list of variant types
243
243
boost::serialization::throw_exception (
244
244
boost::archive::archive_exception (
You can’t perform that action at this time.
0 commit comments