zig used to have @maxValue to query the max value for integer types, but I think it was removed several versions ago. Is there a replacement? I can´t find it.
You can use std.math.maxInt().
std.math.maxInt()