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

Fixing some C++ conversion errors. #23

Closed
wants to merge 2 commits into from

Conversation

benvanik
Copy link
Contributor

  • Implicit conversion from int to bool.
  • Implicit conversion from size_t to uint32_t.
  • Implicit conversion from char* to uint8_t.

@@ -499,7 +499,7 @@ spv_result_t AssemblyContext::checkRangeAndIfHexThenSignExtend(
// Hex values are a bit special. They decode as unsigned values, but
// may represent a negative number. In this case, the overflow bits
// should be zero.
failed = (value & overflow_mask);
failed = (value & overflow_mask) ? true : false;
Copy link

Choose a reason for hiding this comment

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

This is pointless. Does it solve a compilation problem?

* Implicit conversion from int to bool.
* Implicit conversion from size_t to uint32_t.
* Implicit conversion from char* to uint8_t.
dekimir pushed a commit that referenced this pull request Nov 23, 2015
Fixing some C++ conversion errors.
* Implicit conversion from int to bool.
* Implicit conversion from size_t to uint32_t.
* Implicit conversion from char* to uint8_t.

Adding no-op color operators so unhandled platforms can still link.
@dekimir
Copy link

dekimir commented Nov 23, 2015

LGTM, merged. Thanks, Ben!

@dekimir dekimir closed this Nov 23, 2015
dgkoch pushed a commit to dgkoch/SPIRV-Tools that referenced this pull request Nov 21, 2018
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.

None yet

3 participants