Skip to content

Fixed int16_t type name in debug info#3804

Merged
adam-yang merged 3 commits intomicrosoft:masterfrom
adam-yang:int16_debug_info
May 29, 2021
Merged

Fixed int16_t type name in debug info#3804
adam-yang merged 3 commits intomicrosoft:masterfrom
adam-yang:int16_debug_info

Conversation

@adam-yang
Copy link
Copy Markdown
Contributor

No description provided.

@adam-yang adam-yang requested review from pow2clk and tex3d May 27, 2021 15:43
@AppVeyorBot
Copy link
Copy Markdown

case UChar: return "unsigned char";
case UShort: return "unsigned short";
case UShort: return /* "unsigned short" */ "uint16_t" /* HLSL Change */;
case UInt: return "unsigned int";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about some of the neighboring types that also don't match HLSL names? Shouldn't we update them as well? Like:

long -> int (do we hit this case?)
long long -> uint64_t
unsigned int -> uint (do we hit this case?)
unsigned long -> uint
unsigned long long -> uint64_t

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added those too. Strangely uint16_t and uint64_t are unique basic types, but uint is just a typedef of unsigned int.

@AppVeyorBot
Copy link
Copy Markdown

@AppVeyorBot
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@adam-yang adam-yang merged commit dc943d3 into microsoft:master May 29, 2021
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

Successfully merging this pull request may close these issues.

3 participants