diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-22 18:59:59 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-04-22 18:59:59 +0000 |
commit | 7b0be4b0c2589115a59090246188c3797a798d45 (patch) | |
tree | e45908e77dd3c65bcc84d47139a39b79a2c779ca | |
parent | e879c2850baee41429db1ed400f01c0faae59483 (diff) |
- s_misc.h: fixed compile warning with -Wunsuffixed-float-constants
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1846 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | include/s_misc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/s_misc.h b/include/s_misc.h index 88dd5bf..3c18976 100644 --- a/include/s_misc.h +++ b/include/s_misc.h @@ -36,9 +36,9 @@ extern char *ssl_get_cipher(const SSL *); #define IRCD_MAX(a, b) ((a) > (b) ? (a) : (b)) #define IRCD_MIN(a, b) ((a) < (b) ? (a) : (b)) -#define _1MEG (1024.0) -#define _1GIG (1024.0*1024.0) -#define _1TER (1024.0*1024.0*1024.0) +#define _1MEG (1024.0f) +#define _1GIG (1024.0f*1024.0f) +#define _1TER (1024.0f*1024.0f*1024.0f) #define _GMKs(x) (((x) > _1TER) ? "Terabytes" : (((x) > _1GIG) ? "Gigabytes" :\ (((x) > _1MEG) ? "Megabytes" : "Kilobytes"))) #define _GMKv(x) (((x) > _1TER) ? (float)((x)/_1TER) : (((x) > _1GIG) ? \ |