Fixed nf_inq_dim bug demonstrated in 32-bit builds