mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 03:13:13 +01: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,
|
||||
* so be sure and ignore them.
|
||||
*/
|
||||
memcmp(&x1, &x2, REALSIZE - REALPAD) == 0;
|
||||
memcmp(&x1, &x2, sizeof(real_t)) == 0;
|
||||
}
|
||||
|
||||
int RealExp::equals(Object *o)
|
||||
|
||||
Reference in New Issue
Block a user