]> git.lizzy.rs Git - nothing.git/commitdiff
Make memory measure units longer
authorrexim <reximkut@gmail.com>
Sun, 22 Dec 2019 19:02:55 +0000 (02:02 +0700)
committerrexim <reximkut@gmail.com>
Sat, 4 Jan 2020 17:08:51 +0000 (00:08 +0700)
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;