egorand
06/21/2019, 2:28 PMpublic static final Long DEFAULT_DEFAULT_SINT64 = -9223372036854775808L;
and a similar piece of Kotlin code that fails with “value out of range”:
const val DEFAULT_DEFAULT_SINT64: Long = -9223372036854775808L
to make matters worse, I’m producing this value using BigInteger(value).toLong()
, which is supposed to narrow an out of range value, but apparently it doesn’t work with Kotlinyawkat
06/21/2019, 2:32 PMegorand
06/21/2019, 2:33 PM