glm/glm-0.9.6.1-ulp.patch
Petr Šabata 45ed77b9d6 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/glm#7119deaade6429cad0ae5494479c1ac10c8e2ed2
2020-10-15 01:46:17 +02:00

22 lines
692 B
Diff

diff -ru glm/glm/gtc/ulp.inl glm-ulp/glm/gtc/ulp.inl
--- glm/glm/gtc/ulp.inl 2014-12-09 21:13:54.000000000 +0200
+++ glm-ulp/glm/gtc/ulp.inl 2015-01-06 16:29:47.497932633 +0200
@@ -316,7 +316,7 @@
if(x < y)
{
T temp = x;
- while(temp != y)// && ulp < std::numeric_limits<std::size_t>::max())
+ while(temp < y)// && ulp < std::numeric_limits<std::size_t>::max())
{
++ulp;
temp = next_float(temp);
@@ -325,7 +325,7 @@
else if(y < x)
{
T temp = y;
- while(temp != x)// && ulp < std::numeric_limits<std::size_t>::max())
+ while(temp < x)// && ulp < std::numeric_limits<std::size_t>::max())
{
++ulp;
temp = next_float(temp);