Fix test failure on targets where size_t is unsigned int.