Hey,
This is giving me an error, and I'm not sure why:
Student is a struct, attr is an int used for bit storage. My hopes was to shift those bits (since I'm storing them in the high order bits) all the way down to the low order, then storing the number in there. The reason I'm masking is because I only want 14 bits of it (5 digit student number max).Code:(stu->attr >> STUDENT_ID_ACCESS_SHIFT) |= (student_number & STUDENT_ID_MASK);
Can anybody throw me a bone here on what is wrong?
Thanks.
- Greg