Skip to content

fix: ensure isprint() receives unsigned char to prevent MSVC debug as…#349

Merged
blueloveTH merged 1 commit intopocketpy:mainfrom
lightovernight:fix-pirntchar
Mar 7, 2025
Merged

fix: ensure isprint() receives unsigned char to prevent MSVC debug as…#349
blueloveTH merged 1 commit intopocketpy:mainfrom
lightovernight:fix-pirntchar

Conversation

@lightovernight
Copy link
Contributor

When using MSVC's debug runtime, character classification functions like isprint() perform range assertions requiring values between -1 and 255.Since signed char can have values below -1, this can trigger assertions.This change ensures isprint() always receives an unsigned char parameter.

@blueloveTH blueloveTH merged commit e84f86b into pocketpy:main Mar 7, 2025
13 of 15 checks passed
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