change parameter type to common type, bp_decode output to int*
change parameter type to common type, bp_decode input to int*