mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-03 05:10:14 -05:00
Convert stdint to short ints
This commit is contained in:
parent
53c5a2cf1e
commit
511bf47af9
63 changed files with 294 additions and 290 deletions
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "base_types.h"
|
||||
|
||||
|
||||
namespace endian
|
||||
{
|
||||
|
|
@ -26,7 +28,7 @@ namespace endian
|
|||
bool
|
||||
is_big(void)
|
||||
{
|
||||
const union { uint32_t i; char c[4]; } u = { 0x01000000 };
|
||||
const union { u32 i; char c[4]; } u = { 0x01000000 };
|
||||
|
||||
return u.c[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue