Skip to content
  • Nicolas Martyanoff's avatar
    grovel: use the right printf specification for bitfields · 993dc1d6
    Nicolas Martyanoff authored and Luís Oliveira's avatar Luís Oliveira committed
    The BITFIELD grovel syntax always used %i to print the foreign values. But
    when the base type is larger than an int, the resulting values will be
    incorrect.
    
    We introduce the FOREIGN-TYPE-TO-PRINTF-SPECIFICATION function which returns a
    printf string containing a single format specification for a foreign type, and
    use it in the BITFIELD grovel syntax.
    993dc1d6