mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-15 15:02:57 +00:00
Unify uint64_t among 32-bit and 64-bit platforms
On both 32-bit and 64-bit platforms, 'uint64_t' can be defined as 'unsigned long long', which is the type expected by the %llx format-string specifier. By unifying the type definitions, we resolve warnings about unmatching type specifiers. This patch also removes redundant words from the typedefs.
This commit is contained in:
parent
6899dd3d0a
commit
d3e8328089
@ -31,14 +31,14 @@
|
|||||||
/*
|
/*
|
||||||
* Fixed-size types usable from both C and C++ programs
|
* Fixed-size types usable from both C and C++ programs
|
||||||
*/
|
*/
|
||||||
typedef signed char genode_int8_t;
|
typedef signed char genode_int8_t;
|
||||||
typedef unsigned char genode_uint8_t;
|
typedef unsigned char genode_uint8_t;
|
||||||
typedef signed short int genode_int16_t;
|
typedef signed short genode_int16_t;
|
||||||
typedef unsigned short int genode_uint16_t;
|
typedef unsigned short genode_uint16_t;
|
||||||
typedef signed int genode_int32_t;
|
typedef signed genode_int32_t;
|
||||||
typedef unsigned int genode_uint32_t;
|
typedef unsigned genode_uint32_t;
|
||||||
typedef signed long long int genode_int64_t;
|
typedef signed long long genode_int64_t;
|
||||||
typedef unsigned long long int genode_uint64_t;
|
typedef unsigned long long genode_uint64_t;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -21,14 +21,14 @@
|
|||||||
/*
|
/*
|
||||||
* Fixed-size types usable from both C and C++ programs
|
* Fixed-size types usable from both C and C++ programs
|
||||||
*/
|
*/
|
||||||
typedef signed char genode_int8_t;
|
typedef signed char genode_int8_t;
|
||||||
typedef unsigned char genode_uint8_t;
|
typedef unsigned char genode_uint8_t;
|
||||||
typedef signed short int genode_int16_t;
|
typedef signed short genode_int16_t;
|
||||||
typedef unsigned short int genode_uint16_t;
|
typedef unsigned short genode_uint16_t;
|
||||||
typedef signed int genode_int32_t;
|
typedef signed genode_int32_t;
|
||||||
typedef unsigned int genode_uint32_t;
|
typedef unsigned genode_uint32_t;
|
||||||
typedef signed long int genode_int64_t;
|
typedef signed long long genode_int64_t;
|
||||||
typedef unsigned long int genode_uint64_t;
|
typedef unsigned long long genode_uint64_t;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user