Mercurial > projects > ldc
diff dmd/expression.c @ 420:491264b7cb93
Use == in RealEquals and get rid of the memcmp there entirely.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 28 Jul 2008 20:50:41 +0200 |
parents | 1a9bdbd4ac60 |
children | 1c65b5477eaa |
line wrap: on
line diff
--- a/dmd/expression.c Mon Jul 28 08:05:21 2008 +0200 +++ b/dmd/expression.c Mon Jul 28 20:50:41 2008 +0200 @@ -1498,7 +1498,7 @@ /* In some cases, the REALPAD bytes get garbage in them, * so be sure and ignore them. */ - memcmp(&x1, &x2, REAL_T_SIZE - REAL_T_PAD) == 0; + x1 == x2; } int RealExp::equals(Object *o)