fix ilogb error on ubuntu
fix 32 bit integer decoding