You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intrinsics: use -one(T) instead of -1 for signed AND identity
Ensures type-consistent encoding for Int8, Int16, etc.
intrinsics: use type-dependent identity values for reduce ops
- add: zero(T)
- max: typemin(T)
- mul: one(T)
- min: typemax(T)
- and: is_signed ? -1 : typemax(T) for proper bit representation
- or, xor: zero(T)
Fixes encoding error for UInt32 (9223372036854775807 does not fit in 32 bits)
Update core.jl
fix reduce_min identity to use typemax(T) instead of typemax(Int64)
- For UInt32, typemax(UInt32) = 4294967295 fits in 32 bits
- typemax(Int64) = 9223372036854775807 does not fit and caused encoding error
0 commit comments