diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-18 09:37:54 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-18 09:37:54 +0200 |
commit | b83439b87e8e93ed5330d1f38d53577ebfdedaea (patch) | |
tree | ad9cacc2360b61aa0507787b941768779d4efce3 /tools.h | |
parent | 5b57bdebdcecf9e544cbf0af72b77106efa62d8f (diff) | |
download | vdr-b83439b87e8e93ed5330d1f38d53577ebfdedaea.tar.gz vdr-b83439b87e8e93ed5330d1f38d53577ebfdedaea.tar.bz2 |
Fixed the MEGABYTE() macro to make it correctly handle parameters resulting in values larger than 2GB
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 2.1 2008/05/22 10:26:57 kls Exp $ + * $Id: tools.h 2.2 2009/04/14 20:41:39 kls Exp $ */ #ifndef __TOOLS_H @@ -38,7 +38,7 @@ extern int SysLogLevel; #define SECSINDAY 86400 #define KILOBYTE(n) ((n) * 1024) -#define MEGABYTE(n) ((n) * 1024 * 1024) +#define MEGABYTE(n) ((n) * 1024LL * 1024LL) #define MALLOC(type, size) (type *)malloc(sizeof(type) * (size)) |