Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
c8b95db6
Unverified
Commit
c8b95db6
authored
Feb 22, 2021
by
greg-lunarg
Committed by
GitHub
Feb 22, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2540 from dgkoch/dgkoch_build_fix
Fix warning in build
parents
5421877c
d9b931e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SymbolTable.h
glslang/MachineIndependent/SymbolTable.h
+2
-2
No files found.
glslang/MachineIndependent/SymbolTable.h
View file @
c8b95db6
...
...
@@ -698,7 +698,7 @@ public:
void
amendSymbolIdLevel
(
TSymbol
&
symbol
)
{
// clamp level to avoid overflow
uint64_t
level
=
currentLevel
()
>
MaxLevelInUniqueID
?
MaxLevelInUniqueID
:
currentLevel
();
uint64_t
level
=
(
uint32_t
)
currentLevel
()
>
MaxLevelInUniqueID
?
MaxLevelInUniqueID
:
currentLevel
();
uint64_t
symbolId
=
symbol
.
getUniqueId
();
symbolId
&=
uniqueIdMask
;
symbolId
|=
(
level
<<
LevelFlagBitOffset
);
...
...
@@ -889,7 +889,7 @@ public:
// Add current level in the high-bits of unique id
void
updateUniqueIdLevelFlag
()
{
// clamp level to avoid overflow
uint64_t
level
=
currentLevel
()
>
MaxLevelInUniqueID
?
MaxLevelInUniqueID
:
currentLevel
();
uint64_t
level
=
(
uint32_t
)
currentLevel
()
>
MaxLevelInUniqueID
?
MaxLevelInUniqueID
:
currentLevel
();
uniqueId
&=
uniqueIdMask
;
uniqueId
|=
(
level
<<
LevelFlagBitOffset
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment