Skip to content

Commit 83a625c

Browse files
committed
Bump int_lk_t and uint_ulk_t to long long to fix an issue on 32bit systems where long is 32 bits while long _Accum is 64 bits
1 parent da032a6 commit 83a625c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libc/config/linux/riscv/entrypoints.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,8 @@ if(LIBC_COMPILER_HAS_FIXED_POINT)
728728
libc.src.stdfix.kbits
729729
libc.src.stdfix.ukbits
730730
# TODO: https://github.com/llvm/llvm-project/issues/115778
731-
# libc.src.stdfix.lkbits
732-
# libc.src.stdfix.ulkbits
731+
libc.src.stdfix.lkbits
732+
libc.src.stdfix.ulkbits
733733
)
734734
endif()
735735

libc/include/llvm-libc-types/stdfix-types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ typedef signed short int int_r_t;
1414
typedef signed int int_lr_t;
1515
typedef signed short int_hk_t;
1616
typedef signed int int_k_t;
17-
typedef signed long int_lk_t;
17+
typedef signed long long int_lk_t;
1818
typedef unsigned char uint_uhr_t;
1919
typedef unsigned short int uint_ur_t;
2020
typedef unsigned int uint_ulr_t;
2121
typedef unsigned short int uint_uhk_t;
2222
typedef unsigned int uint_uk_t;
23-
typedef unsigned long uint_ulk_t;
23+
typedef unsigned long long uint_ulk_t;
2424

2525
#endif // LLVM_LIBC_TYPES_STDFIX_TYPES_H

0 commit comments

Comments
 (0)