mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
AK: Rename MakeUnsigned::type to MakeUnsigned::Type.
Also renames MakeSigned::type to MakeSigned::Type.
This commit is contained in:
parent
7e6fbef8db
commit
05abfc0e1f
Notes:
sideshowbarker
2024-07-19 04:14:40 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/05abfc0e1f7 Pull-request: https://github.com/SerenityOS/serenity/pull/3007 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/nico
3 changed files with 22 additions and 22 deletions
|
@ -321,52 +321,52 @@ struct MakeUnsigned {
|
|||
|
||||
template<>
|
||||
struct MakeUnsigned<signed char> {
|
||||
typedef unsigned char type;
|
||||
typedef unsigned char Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<short> {
|
||||
typedef unsigned short type;
|
||||
typedef unsigned short Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<int> {
|
||||
typedef unsigned type;
|
||||
typedef unsigned Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<long> {
|
||||
typedef unsigned long type;
|
||||
typedef unsigned long Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<long long> {
|
||||
typedef unsigned long long type;
|
||||
typedef unsigned long long Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<unsigned char> {
|
||||
typedef unsigned char type;
|
||||
typedef unsigned char Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<unsigned short> {
|
||||
typedef unsigned short type;
|
||||
typedef unsigned short Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<unsigned int> {
|
||||
typedef unsigned type;
|
||||
typedef unsigned Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<unsigned long> {
|
||||
typedef unsigned long type;
|
||||
typedef unsigned long Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeUnsigned<unsigned long long> {
|
||||
typedef unsigned long long type;
|
||||
typedef unsigned long long Type;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
@ -375,52 +375,52 @@ struct MakeSigned {
|
|||
|
||||
template<>
|
||||
struct MakeSigned<signed char> {
|
||||
typedef signed char type;
|
||||
typedef signed char Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<short> {
|
||||
typedef short type;
|
||||
typedef short Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<int> {
|
||||
typedef int type;
|
||||
typedef int Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<long> {
|
||||
typedef long type;
|
||||
typedef long Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<long long> {
|
||||
typedef long long type;
|
||||
typedef long long Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<unsigned char> {
|
||||
typedef char type;
|
||||
typedef char Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<unsigned short> {
|
||||
typedef short type;
|
||||
typedef short Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<unsigned int> {
|
||||
typedef int type;
|
||||
typedef int Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<unsigned long> {
|
||||
typedef long type;
|
||||
typedef long Type;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct MakeSigned<unsigned long long> {
|
||||
typedef long long type;
|
||||
typedef long long Type;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
|
|
|
@ -42,7 +42,7 @@ typedef __INT8_TYPE__ i8;
|
|||
#ifdef __serenity__
|
||||
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
typedef MakeSigned<size_t>::type ssize_t;
|
||||
typedef MakeSigned<size_t>::Type ssize_t;
|
||||
|
||||
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ template<typename T>
|
|||
struct TypeTrivia {
|
||||
static const size_t bits = sizeof(T) * 8;
|
||||
static const T sign_bit = 1 << (bits - 1);
|
||||
static const T mask = typename MakeUnsigned<T>::type(-1);
|
||||
static const T mask = typename MakeUnsigned<T>::Type(-1);
|
||||
};
|
||||
|
||||
template<typename T, typename U>
|
||||
|
|
Loading…
Reference in a new issue