From e891b171a9d98805e3a55089657dc4720976d2cd Mon Sep 17 00:00:00 2001 From: yanghaku <1961882079@qq.com> Date: Fri, 7 Jul 2023 20:00:05 +0800 Subject: [PATCH] Fix size_t and other types in riscv64 Signed-off-by: yanghaku <1961882079@qq.com> --- src/arch/riscv64/include/bits/types.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/arch/riscv64/include/bits/types.h b/src/arch/riscv64/include/bits/types.h index dbb3441..b5309a0 100644 --- a/src/arch/riscv64/include/bits/types.h +++ b/src/arch/riscv64/include/bits/types.h @@ -7,21 +7,21 @@ typedef unsigned short u16_t; typedef signed int s32_t; typedef unsigned int u32_t; -typedef signed long long s64_t; -typedef unsigned long long u64_t; +typedef signed long int s64_t; +typedef unsigned long int u64_t; -typedef signed long long intmax_t; -typedef unsigned long long uintmax_t; +typedef signed long int intmax_t; +typedef unsigned long int uintmax_t; -typedef signed long long ptrdiff_t; -typedef signed long long intptr_t; -typedef unsigned long long uintptr_t; +typedef signed long int ptrdiff_t; +typedef signed long int intptr_t; +typedef unsigned long int uintptr_t; -typedef unsigned long long size_t; -typedef signed long long ssize_t; +typedef unsigned long int size_t; +typedef signed long int ssize_t; typedef signed int off_t; -typedef signed long long loff_t; +typedef signed long int loff_t; typedef signed int bool_t; -- Gitee