You assign 0x88000042 to the avriable pars, which is declared as 'unsigned int' . An unsigned int may be as small as 16 bits, so this test is invalid. Could you test whatever you wanted to test by declaring pars as 'unsigned long' ?