Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 3.5: bitfields and basic types
#3
Hi,

sorry, the information in my post was insufficient.

Do you have an explanation, why i should write

unsigned int x_set:1

and not

uint32_t x_set:1? When uint32_t is a typedef unsigned int uint32_t; on a 32 bit architecture,
or
uint16_t x_set:1 When uint16_t is a typedef unsigned int uint16_t on a 16 bit architecture ??

It's no question that long and char are surely not allowed to use.

Thanks in advance.

Regine


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)