This code is (redundant) -1 to -1 in size_t . The most likely intention was to get the maximum possible size_t value in this system.
Although this code does not have undefined behavior, this code is ugly - in C ++ you should use std::numeric_limits<size_t>::max() and in C use the SIZE_MAX macro just for the purpose of getting the largest size_t value,
source share