Fix compile-time comparison of template value parameters of real type.

This commit is contained in:
Christian Kamm
2008-07-27 13:29:31 +02:00
parent 86819d1cef
commit befaf511e6

View File

@@ -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)