mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 19:20:05 +00:00
Fix, that spirv-tools did not build, as two casts are not present.
This commit is contained in:
parent
433285626e
commit
32197bdcd7
@ -842,9 +842,9 @@ std::istream& operator>>(std::istream& is, HexFloat<T, Traits>& value) {
|
|||||||
// If we are here the bits represented belong in the fractional
|
// If we are here the bits represented belong in the fractional
|
||||||
// part of the float, and we have to adjust the exponent accordingly.
|
// part of the float, and we have to adjust the exponent accordingly.
|
||||||
fraction =
|
fraction =
|
||||||
fraction |
|
static_cast<uint_type>(fraction |
|
||||||
static_cast<uint_type>(
|
static_cast<uint_type>(
|
||||||
write_bit << (HF::top_bit_left_shift - fraction_index++));
|
write_bit << (HF::top_bit_left_shift - fraction_index++)));
|
||||||
exponent = static_cast<int_type>(exponent + 1);
|
exponent = static_cast<int_type>(exponent + 1);
|
||||||
}
|
}
|
||||||
bits_written |= write_bit != 0;
|
bits_written |= write_bit != 0;
|
||||||
@ -874,9 +874,9 @@ std::istream& operator>>(std::istream& is, HexFloat<T, Traits>& value) {
|
|||||||
exponent = static_cast<int_type>(exponent - 1);
|
exponent = static_cast<int_type>(exponent - 1);
|
||||||
} else {
|
} else {
|
||||||
fraction =
|
fraction =
|
||||||
fraction |
|
static_cast<uint_type>(fraction |
|
||||||
static_cast<uint_type>(
|
static_cast<uint_type>(
|
||||||
write_bit << (HF::top_bit_left_shift - fraction_index++));
|
write_bit << (HF::top_bit_left_shift - fraction_index++)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user