fix issue #26 - convert mpl's long size to size_t before comparison