Sorry, forgot to add include of limits.h in previous commit