INT_MAX is OK, but I would prefer 0 as an error value.