i am using the below logic. but it gives me error when i am setting the bit_position 15 or 16. i suspect, the problem with the integer range.
please suggest.
please suggest.
Code:
short bit_map, bit_position bit_map = bit_map | ( 1 << bit_position )
Comment