Changes get_send_code return type

Better to return an unsigned in that case