Skip to content

Define UTF8PROC_SSIZE_MAX for the maximum utf8proc_ssize_t value - #349

Open
ChrisJr404 wants to merge 1 commit into
JuliaStrings:masterfrom
ChrisJr404:define-ssize-max
Open

Define UTF8PROC_SSIZE_MAX for the maximum utf8proc_ssize_t value#349
ChrisJr404 wants to merge 1 commit into
JuliaStrings:masterfrom
ChrisJr404:define-ssize-max

Conversation

@ChrisJr404

Copy link
Copy Markdown

Closes #103. This adds a UTF8PROC_SSIZE_MAX macro so callers can safely check a size_t length before converting it to utf8proc_ssize_t, as suggested in that issue. It expands to PTRDIFF_MAX in the normal stdint path and to the matching limit on the old MSVC branch, with a regression test in test/misc.c.

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.

utf8proc_ssize_t

1 participant