mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
90536a1558
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:
|
||
---|---|---|
.. | ||
4chan_catalog.json | ||
CMakeLists.txt | ||
test.frm | ||
TestArray.cpp | ||
TestAtomic.cpp | ||
TestBase64.cpp | ||
TestBinarySearch.cpp | ||
TestBitmap.cpp | ||
TestByteBuffer.cpp | ||
TestChecked.cpp | ||
TestCircularDeque.cpp | ||
TestCircularDuplexStream.cpp | ||
TestCircularQueue.cpp | ||
TestDistinctNumeric.cpp | ||
TestFormat.cpp | ||
TestHashMap.cpp | ||
TestJSON.cpp | ||
TestLexicalPath.cpp | ||
TestMemoryStream.cpp | ||
TestNonnullRefPtr.cpp | ||
TestNumberFormat.cpp | ||
TestOptional.cpp | ||
TestQueue.cpp | ||
TestRefPtr.cpp | ||
TestSpan.cpp | ||
TestString.cpp | ||
TestStringUtils.cpp | ||
TestStringView.cpp | ||
TestTypedTransfer.cpp | ||
TestURL.cpp | ||
TestUtf8.cpp | ||
TestVector.cpp | ||
TestWeakPtr.cpp |