diff --git a/libstdc++-v3/libsupc++/eh_alloc.cc b/libstdc++-v3/libsupc++/eh_alloc.cc index c85b9aed40b..68f319869f9 100644 --- a/libstdc++-v3/libsupc++/eh_alloc.cc +++ b/libstdc++-v3/libsupc++/eh_alloc.cc @@ -224,8 +224,8 @@ namespace free_entry **fe; for (fe = &first_free_entry; (*fe)->next - && (reinterpret_cast ((*fe)->next) - > reinterpret_cast (e) + sz); + && (reinterpret_cast (e) + sz + > reinterpret_cast ((*fe)->next)); fe = &(*fe)->next) ; // If we can merge the next block into us do so and continue