Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
<ctype.h>: fix a stray inline that breaks C89 compatibility.
Browse files Browse the repository at this point in the history
Bug: android/ndk#2081
Change-Id: I8d63fb003510837c28dad0da9b0c6703a3487f7b
  • Loading branch information
enh-google committed Nov 8, 2024
1 parent 7478c9b commit 1443502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/include/ctype.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ __BIONIC_CTYPE_INLINE int _toupper(int __ch) {

/** Internal implementation detail. Do not use. */
__attribute__((__no_sanitize__("unsigned-integer-overflow")))
static inline int __bionic_ctype_in_range(unsigned __lo, int __ch, unsigned __hi) {
__BIONIC_CTYPE_INLINE int __bionic_ctype_in_range(unsigned __lo, int __ch, unsigned __hi) {
return (__BIONIC_CAST(static_cast, unsigned, __ch) - __lo) < (__hi - __lo + 1);
}

Expand Down

0 comments on commit 1443502

Please sign in to comment.