Changes get_send_code return type

Better to return an unsigned in that case
Merge branch 'develop' into diminish_size