Mercurial > projects > ldc
view dmd2/gnuc.h @ 1166:c6f39553b702
Clean up some suspicious code.
There's no guarantee a constant of integer type is a ConstantInt, so it's not
safe to just cast<> these to ConstantInt. (It could be a constant expression,
for example)
The code is shorter this way too :).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 29 Mar 2009 03:27:04 +0200 |
parents | f04dde6e882c |
children |
line wrap: on
line source
#ifndef _GNUC_H #define _GNUC_H 1 int memicmp(const char *s1, const char *s2, int n); int stricmp(const char *s1, const char *s2); #endif