N_CODE can differ from N_VALUE because N_VALUE holds only the bottom nibble of N_CODE. [This line](https://github.com/nahmedraja/GASAL2/blob/master/src/kernels/pack_rc_seqs.h#L115) uses `N_CODE`, but it should use `N_VALUE`.