]> git.lizzy.rs Git - nothing.git/blobdiff - src/system/memory.h
Make memory measure units longer
[nothing.git] / src / system / memory.h
index d099d5f641505d0f84466b16c4cc2bb158845c8f..c12c8e47d662664ba3d0504ed150f644f169fcf2 100644 (file)
@@ -4,9 +4,9 @@
 #include <assert.h>
 #include <stdint.h>
 
-#define KILO 1024
-#define MEGA (1024 * KILO)
-#define GIGA (1024 * MEGA)
+#define KILO 1024L
+#define MEGA (1024L * KILO)
+#define GIGA (1024L * MEGA)
 
 typedef struct {
     size_t capacity;