Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glslang
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
deqp-deps
glslang
Commits
cabba60a
Commit
cabba60a
authored
8 years ago
by
baldurk
Browse files
Options
Downloads
Patches
Plain Diff
Change {} constructor brackets to ()
parent
7cac9e72
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SPIRV/hex_float.h
+2
-2
2 additions, 2 deletions
SPIRV/hex_float.h
with
2 additions
and
2 deletions
SPIRV/hex_float.h
+
2
−
2
View file @
cabba60a
...
...
@@ -757,7 +757,7 @@ inline bool RejectParseDueToLeadingSign(std::istream& is, bool negate_value,
if
(
next_char
==
'-'
||
next_char
==
'+'
)
{
// Fail the parse. Emulate standard behaviour by setting the value to
// the zero value, and set the fail bit on the stream.
value
=
HexFloat
<
T
,
Traits
>
(
typename
HexFloat
<
T
,
Traits
>::
uint_type
{
0
}
);
value
=
HexFloat
<
T
,
Traits
>
(
typename
HexFloat
<
T
,
Traits
>::
uint_type
(
0
)
);
is
.
setstate
(
std
::
ios_base
::
failbit
);
return
true
;
}
...
...
@@ -789,7 +789,7 @@ inline std::istream& ParseNormalFloat(std::istream& is, bool negate_value,
value
.
set_value
(
val
);
// In the failure case, map -0.0 to 0.0.
if
(
is
.
fail
()
&&
value
.
getUnsignedBits
()
==
0u
)
{
value
=
HexFloat
<
T
,
Traits
>
(
typename
HexFloat
<
T
,
Traits
>::
uint_type
{
0
}
);
value
=
HexFloat
<
T
,
Traits
>
(
typename
HexFloat
<
T
,
Traits
>::
uint_type
(
0
)
);
}
if
(
val
.
isInfinity
())
{
// Fail the parse. Emulate standard behaviour by setting the value to
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment