Skip to content

Commit

Permalink
Prevent duplicate (token,name) pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-baker committed May 30, 2024
1 parent 9601247 commit 3c4f7b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/buildHeaders/jsonToSpirv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ unsigned int NumberStringToBit(const std::string& str)
bool SuffixComparison(const std::string& prev, bool prevCore,
const std::string& cur, bool curCore)
{
if (prev == cur) return true;
// Duplicate entry
if (prev == cur) return false;

if (prevCore) return true;
if (curCore) return false;
Expand Down

0 comments on commit 3c4f7b9

Please sign in to comment.