Skip to content

Fix incorrect char usage in estring trim function - #862

Merged
lihuiba merged 1 commit into
alibaba:release/0.7from
Moonpuck:estring_trim_fix_0.7
Jul 16, 2025
Merged

Fix incorrect char usage in estring trim function#862
lihuiba merged 1 commit into
alibaba:release/0.7from
Moonpuck:estring_trim_fix_0.7

Conversation

@Moonpuck

Copy link
Copy Markdown
Collaborator

The trim function previously used 'char' type for comparing characters,
which causes sign-extension issues when character values are in the range
128~255.

Change to use 'unsigned char' ensures correct comparison and fixes the bug.

The trim function previously used 'char' type for comparing characters,
which causes sign-extension issues when character values are in the range
128~255.

Change to use 'unsigned char' ensures correct comparison and fixes the bug.
@lihuiba
lihuiba merged commit c170b0d into alibaba:release/0.7 Jul 16, 2025
4 of 5 checks passed
@Moonpuck
Moonpuck deleted the estring_trim_fix_0.7 branch October 31, 2025 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants