mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 09:49:02 +02:00
Fix compile-time comparison of template value parameters of real type.
This commit is contained in:
@@ -1498,7 +1498,7 @@ int RealEquals(real_t x1, real_t x2)
|
|||||||
/* In some cases, the REALPAD bytes get garbage in them,
|
/* In some cases, the REALPAD bytes get garbage in them,
|
||||||
* so be sure and ignore them.
|
* so be sure and ignore them.
|
||||||
*/
|
*/
|
||||||
memcmp(&x1, &x2, REALSIZE - REALPAD) == 0;
|
memcmp(&x1, &x2, sizeof(real_t)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int RealExp::equals(Object *o)
|
int RealExp::equals(Object *o)
|
||||||
|
|||||||
Reference in New Issue
Block a user