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
470a68cf
Commit
470a68cf
authored
Jun 01, 2018
by
LoopDawg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix several signed/unsigned comparison compile warnings.
parent
32d3ec31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
intermOut.cpp
glslang/MachineIndependent/intermOut.cpp
+1
-1
PpTokens.cpp
glslang/MachineIndependent/preprocessor/PpTokens.cpp
+2
-2
No files found.
glslang/MachineIndependent/intermOut.cpp
View file @
470a68cf
...
@@ -1131,7 +1131,7 @@ static void OutputDouble(TInfoSink& out, double value, TOutputTraverser::EExtraO
...
@@ -1131,7 +1131,7 @@ static void OutputDouble(TInfoSink& out, double value, TOutputTraverser::EExtraO
{
{
out
.
debug
<<
" : "
;
out
.
debug
<<
" : "
;
long
long
b
=
*
reinterpret_cast
<
long
long
*>
(
&
value
);
long
long
b
=
*
reinterpret_cast
<
long
long
*>
(
&
value
);
for
(
in
t
i
=
0
;
i
<
8
*
sizeof
(
value
);
++
i
,
++
b
)
{
for
(
size_
t
i
=
0
;
i
<
8
*
sizeof
(
value
);
++
i
,
++
b
)
{
out
.
debug
<<
((
b
&
0x8000000000000000
)
!=
0
?
"1"
:
"0"
);
out
.
debug
<<
((
b
&
0x8000000000000000
)
!=
0
?
"1"
:
"0"
);
b
<<=
1
;
b
<<=
1
;
}
}
...
...
glslang/MachineIndependent/preprocessor/PpTokens.cpp
View file @
470a68cf
...
@@ -188,7 +188,7 @@ void TPpContext::TokenStream::putToken(int atom, TPpToken* ppToken)
...
@@ -188,7 +188,7 @@ void TPpContext::TokenStream::putToken(int atom, TPpToken* ppToken)
// save the numeric value
// save the numeric value
if
(
SaveValue
(
atom
))
{
if
(
SaveValue
(
atom
))
{
const
char
*
n
=
reinterpret_cast
<
const
char
*>
(
&
ppToken
->
i64val
);
const
char
*
n
=
reinterpret_cast
<
const
char
*>
(
&
ppToken
->
i64val
);
for
(
in
t
i
=
0
;
i
<
sizeof
(
ppToken
->
i64val
);
++
i
)
for
(
size_
t
i
=
0
;
i
<
sizeof
(
ppToken
->
i64val
);
++
i
)
putSubtoken
(
*
n
++
);
putSubtoken
(
*
n
++
);
}
}
}
}
...
@@ -238,7 +238,7 @@ int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken
...
@@ -238,7 +238,7 @@ int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken
// get the numeric value
// get the numeric value
if
(
SaveValue
(
atom
))
{
if
(
SaveValue
(
atom
))
{
char
*
n
=
reinterpret_cast
<
char
*>
(
&
ppToken
->
i64val
);
char
*
n
=
reinterpret_cast
<
char
*>
(
&
ppToken
->
i64val
);
for
(
in
t
i
=
0
;
i
<
sizeof
(
ppToken
->
i64val
);
++
i
)
for
(
size_
t
i
=
0
;
i
<
sizeof
(
ppToken
->
i64val
);
++
i
)
*
n
++
=
getSubtoken
();
*
n
++
=
getSubtoken
();
}
}
...
...
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