Should be `size != -1` since -1 is an explicit value. If someone passes a negative value then the behavior is undefined (which is fine).