Fix for integers exceeding the max during hypot