summaryrefslogtreecommitdiff
path: root/AK/NeverDestroyed.h
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-09-22 13:42:30 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-22 15:06:40 +0200
commit90536a15581a95e70c351de7d50ac1d20a2fe2ce (patch)
treeeaca84c33b4c9222c693ab857c580ea28b8794ba /AK/NeverDestroyed.h
parente5497a326aed3a869593242ceb467d8718a72e8c (diff)
downloadserenity-90536a15581a95e70c351de7d50ac1d20a2fe2ce.zip
AK: Consider long and unsigned long as integral types.
Two things I hate about C++: 1. 'int', 'signed int' and 'unsigned int' are two distinct types while 'char, 'signed char' and 'unsigned char' are *three* distinct types. This is because 'signed int' is an alias for 'int' but 'signed char' can't be an alias for 'char' because on some weird systems 'char' is unsigned. One might think why not do it the other way around, make 'int' an alias for 'signed int' and 'char' an alias for whatever that is on the platform, or make 'char' signed on all platforms. But who am I to ask? 2. 'unsigned long' and 'unsigned long long' are always different types, even if both are 64 bit numbers. This commit fixes a few bugs that coming from this. See Also: 1b3169f405ac9250b65ee3608e2962f51d2d8e3c.
Diffstat (limited to 'AK/NeverDestroyed.h')
-rw-r--r--AK/NeverDestroyed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/NeverDestroyed.h b/AK/NeverDestroyed.h
index 361f519043..64035a759a 100644
--- a/AK/NeverDestroyed.h
+++ b/AK/NeverDestroyed.h
@@ -27,7 +27,7 @@
#pragma once
#include <AK/Noncopyable.h>
-#include <AK/StdLibExtras.h>
+#include <AK/Types.h>
namespace AK {