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
11f5fc04
Commit
11f5fc04
authored
May 07, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glslang preprocassor: Fix operator precedence bug.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31087
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
b7cc3311
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spvIR.h
SPIRV/spvIR.h
+1
-1
PpTokens.cpp
glslang/MachineIndependent/preprocessor/PpTokens.cpp
+1
-1
No files found.
SPIRV/spvIR.h
View file @
11f5fc04
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
#include <vector>
#include <vector>
#include <iostream>
#include <iostream>
#include <
cassert
>
#include <
assert.h
>
namespace
spv
{
namespace
spv
{
...
...
glslang/MachineIndependent/preprocessor/PpTokens.cpp
View file @
11f5fc04
...
@@ -221,7 +221,7 @@ int TPpContext::ReadToken(TokenStream *pTok, TPpToken *ppToken)
...
@@ -221,7 +221,7 @@ int TPpContext::ReadToken(TokenStream *pTok, TPpToken *ppToken)
case
CPP_UINTCONSTANT
:
case
CPP_UINTCONSTANT
:
strcpy
(
ppToken
->
name
,
tokenText
);
strcpy
(
ppToken
->
name
,
tokenText
);
if
(
len
>
0
&&
tokenText
[
0
]
==
'0'
)
{
if
(
len
>
0
&&
tokenText
[
0
]
==
'0'
)
{
if
(
len
>
1
&&
tokenText
[
1
]
==
'x'
||
tokenText
[
1
]
==
'X'
)
if
(
len
>
1
&&
(
tokenText
[
1
]
==
'x'
||
tokenText
[
1
]
==
'X'
)
)
ppToken
->
ival
=
strtol
(
ppToken
->
name
,
0
,
16
);
ppToken
->
ival
=
strtol
(
ppToken
->
name
,
0
,
16
);
else
else
ppToken
->
ival
=
strtol
(
ppToken
->
name
,
0
,
8
);
ppToken
->
ival
=
strtol
(
ppToken
->
name
,
0
,
8
);
...
...
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