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
332b173c
Commit
332b173c
authored
Jan 30, 2019
by
baldurk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mismatched integer comparison (size_t/unsigned int vs int)
parent
c9e03360
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SpvPostProcess.cpp
SPIRV/SpvPostProcess.cpp
+1
-1
SymbolTable.cpp
glslang/MachineIndependent/SymbolTable.cpp
+1
-1
No files found.
SPIRV/SpvPostProcess.cpp
View file @
332b173c
...
@@ -222,7 +222,7 @@ void Builder::postProcess(Instruction& inst)
...
@@ -222,7 +222,7 @@ void Builder::postProcess(Instruction& inst)
Instruction
*
idx
=
module
.
getInstruction
(
accessChain
->
getIdOperand
(
i
));
Instruction
*
idx
=
module
.
getInstruction
(
accessChain
->
getIdOperand
(
i
));
if
(
type
->
getOpCode
()
==
OpTypeStruct
)
{
if
(
type
->
getOpCode
()
==
OpTypeStruct
)
{
assert
(
idx
->
getOpCode
()
==
OpConstant
);
assert
(
idx
->
getOpCode
()
==
OpConstant
);
int
c
=
idx
->
getImmediateOperand
(
0
);
unsigned
int
c
=
idx
->
getImmediateOperand
(
0
);
const
auto
function
=
[
&
](
const
std
::
unique_ptr
<
Instruction
>&
decoration
)
{
const
auto
function
=
[
&
](
const
std
::
unique_ptr
<
Instruction
>&
decoration
)
{
if
(
decoration
.
get
()
->
getOpCode
()
==
OpMemberDecorate
&&
if
(
decoration
.
get
()
->
getOpCode
()
==
OpMemberDecorate
&&
...
...
glslang/MachineIndependent/SymbolTable.cpp
View file @
332b173c
...
@@ -297,7 +297,7 @@ TVariable::TVariable(const TVariable& copyOf) : TSymbol(copyOf)
...
@@ -297,7 +297,7 @@ TVariable::TVariable(const TVariable& copyOf) : TSymbol(copyOf)
if
(
copyOf
.
getNumExtensions
()
>
0
)
if
(
copyOf
.
getNumExtensions
()
>
0
)
setExtensions
(
copyOf
.
getNumExtensions
(),
copyOf
.
getExtensions
());
setExtensions
(
copyOf
.
getNumExtensions
(),
copyOf
.
getExtensions
());
if
(
copyOf
.
hasMemberExtensions
())
{
if
(
copyOf
.
hasMemberExtensions
())
{
for
(
int
m
=
0
;
m
<
copyOf
.
type
.
getStruct
()
->
size
();
++
m
)
{
for
(
int
m
=
0
;
m
<
(
int
)
copyOf
.
type
.
getStruct
()
->
size
();
++
m
)
{
if
(
copyOf
.
getNumMemberExtensions
(
m
)
>
0
)
if
(
copyOf
.
getNumMemberExtensions
(
m
)
>
0
)
setMemberExtensions
(
m
,
copyOf
.
getNumMemberExtensions
(
m
),
copyOf
.
getMemberExtensions
(
m
));
setMemberExtensions
(
m
,
copyOf
.
getNumMemberExtensions
(
m
),
copyOf
.
getMemberExtensions
(
m
));
}
}
...
...
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