}
if (l > 8) {
v = yacFromBE(buf + 1 + 8, 4);
- if ((l == 8) && (v == 0)) {
+ if ((l == 12) && (v == 0)) {
return YACErrTAI64NonMinimal;
}
if (v > 999999999) {
}
if l > 8 {
nsecs := FromBE(buf[1+8 : 1+8+4])
- if l == 8 && nsecs == 0 {
+ if l == 12 && nsecs == 0 {
err = errors.New("non-minimal TAI64N")
return
}
nsecs = 0
if l > 8:
nsecs = int.from_bytes(v[1+8:1+8+4], "big")
- if (l == 8) and (nsecs == 0):
+ if (l == 12) and (nsecs == 0):
raise DecodeError("non-minimal TAI64N")
if nsecs > 999999999:
raise DecodeError("too many nanoseconds")