aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaldurk <baldurk@baldurk.org>2016-10-13 19:32:37 +0200
committerbaldurk <baldurk@baldurk.org>2016-10-13 19:32:37 +0200
commitcabba60abfc8a6d8275d939e41c0cb59e9afd694 (patch)
tree53c9be438e01ed7ee93f8c60eff4e059aecb4472
parent7cac9e7245c6ce5cdc36f7a9473b994d239a2094 (diff)
downloadglslang-cabba60abfc8a6d8275d939e41c0cb59e9afd694.tar.gz
Change {} constructor brackets to ()
-rw-r--r--SPIRV/hex_float.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/SPIRV/hex_float.h b/SPIRV/hex_float.h
index 4a26ad8c..a051b2f5 100644
--- a/SPIRV/hex_float.h
+++ b/SPIRV/hex_float.h
@@ -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