short int is parsed apparently incorrectly #267

rdp opened this Issue Feb 16, 2012 · 1 comment


None yet

2 participants

rdp commented Feb 16, 2012

Hello again. Sorry for the flood.

typedef struct sg_io_hdr
  unsigned short int iovec_count;
} sg_io_hdr_t;

this parses as

public class sg_io_hdr_t extends Structure {
    public int iovec_count;

I "guess" it should be a short in java?

ochafik commented Feb 19, 2012

Hi Roger,

Thanks for the "flood", much appreciated ;-)

I've committed and deployed a fix for that issue that went unnoticed for way too long, thank you for reporting it !


@ochafik ochafik closed this Feb 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment