AK: Rename MakeUnsigned::type to MakeUnsigned::Type.

Also renames MakeSigned::type to MakeSigned::Type.
This commit is contained in:
asynts 2020-08-03 20:35:25 +02:00 committed by Andreas Kling
parent 7e6fbef8db
commit 05abfc0e1f
3 changed files with 22 additions and 22 deletions

View file

@ -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>

View file

@ -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;

View file

@ -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>