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
5d88edf1
Unverified
Commit
5d88edf1
authored
May 11, 2020
by
John Kessenich
Committed by
GitHub
May 11, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2210 from Flakebi/ubsan
Explicitly mark EShLanguageMask as unsigned
parents
b5f003d7
91ac60fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Versions.h
glslang/MachineIndependent/Versions.h
+1
-1
ShaderLang.h
glslang/Public/ShaderLang.h
+2
-2
No files found.
glslang/MachineIndependent/Versions.h
View file @
5d88edf1
...
...
@@ -52,7 +52,7 @@
// Don't maintain an ordinal set of enums (0,1,2,3...) to avoid all possible
// defects from mixing the two different forms.
//
typedef
enum
{
typedef
enum
:
unsigned
{
EBadProfile
=
0
,
ENoProfile
=
(
1
<<
0
),
// only for desktop, before profiles showed up
ECoreProfile
=
(
1
<<
1
),
...
...
glslang/Public/ShaderLang.h
View file @
5d88edf1
...
...
@@ -109,7 +109,7 @@ typedef enum {
LAST_ELEMENT_MARKER
(
EShLangCount
),
}
EShLanguage
;
// would be better as stage, but this is ancient now
typedef
enum
{
typedef
enum
:
unsigned
{
EShLangVertexMask
=
(
1
<<
EShLangVertex
),
EShLangTessControlMask
=
(
1
<<
EShLangTessControl
),
EShLangTessEvaluationMask
=
(
1
<<
EShLangTessEvaluation
),
...
...
@@ -240,7 +240,7 @@ typedef enum {
//
// Message choices for what errors and warnings are given.
//
enum
EShMessages
{
enum
EShMessages
:
unsigned
{
EShMsgDefault
=
0
,
// default is to give all required errors and extra warnings
EShMsgRelaxedErrors
=
(
1
<<
0
),
// be liberal in accepting input
EShMsgSuppressWarnings
=
(
1
<<
1
),
// suppress all warnings, except those required by the specification
...
...
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