changed long to int (64 bit system's compatibilty)
[lcr.git] / macro.h
diff --git a/macro.h b/macro.h
index 07921e0..ab0716c 100644 (file)
--- a/macro.h
+++ b/macro.h
@@ -85,7 +85,7 @@ static inline void fatal(const char *function, int line, char *fmt, ...)
 
 /* memory allocation with setting to zero */
 #define MALLOC(size) _malloc(size, __FUNCTION__, __LINE__)
-static inline void *_malloc(unsigned long size, const char *function, int line)
+static inline void *_malloc(unsigned int size, const char *function, int line)
 {
        void *addr;
        addr = malloc(size);