Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong type output #21

Open
romanholidaypancakes opened this issue Jan 26, 2023 · 1 comment
Open

wrong type output #21

romanholidaypancakes opened this issue Jan 26, 2023 · 1 comment

Comments

@romanholidaypancakes
Copy link

romanholidaypancakes commented Jan 26, 2023

  • error 1

    • original
    struct Struct1
    {
        uint16 filed_1 : 1;
        uint16 filed_2 : 5;
        uint16 filed_3 : 10;
    };
    • PDBRipper output
    struct Struct1
    {
        unsigned int filed_1:1;
        unsigned int filed_2:5;
        unsigned int filed_3:10;
    };
    
  • error 2

    • original
    struct Struct2
    {
        union {
      	  uint16 filed_1 : 1;
      	  uint16 filed_2 : 5;
      	  uint16 filed_3 : 10;
        };
    };
    
    • PDBRipper output
    struct Struct2
    {
        unsigned int filed_1:1;
        unsigned int filed_2:5;
        unsigned int filed_3:10;
    };
    
  • error 3

    • original
    union Struct4 {
        struct
        {
      	  uint16 filed_1 : 1;
      	  uint16 filed_2 : 5;
      	  uint16 filed_3 : 10;
        };
    
    };
    
    • PDBRipper output
    union Struct4
    {
        unsigned int filed_1:1;
        unsigned int filed_2:5;
        unsigned int filed_3:10;
    };
    

they have completely different meanings

see assembly output here

@horsicq
Copy link
Owner

horsicq commented Jan 26, 2023

Ok! I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants