Fix negative int32/int64 buffer decoding.