Skip to content

filtersize self-test: portable LLint parse and lock the '>' size operator#432

Merged
xroche merged 1 commit into
masterfrom
fix/filtersize-portability
Jun 26, 2026
Merged

filtersize self-test: portable LLint parse and lock the '>' size operator#432
xroche merged 1 commit into
masterfrom
fix/filtersize-portability

Conversation

@xroche

@xroche xroche commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Follow-up from a review of #431. Two test-only tweaks, no behavior change. The filtersize self-test parsed its size argument with strtoll; switch to the sscanf(argv[0], LLintP, &sz) idiom the rest of the tree uses, since LLint is not always long long (MSVC __int64, plus narrower fallbacks) and strtoll is missing on old MSVC. Also add two cases so the scan-time neutrality of size rules is pinned for the > operator, not just <.

…e '>' operator

Use the portable sscanf(argv[0], LLintP, &sz) idiom the rest of the tree
uses to read an LLint, instead of strtoll: LLint is not always long long
(MSVC __int64, plus fallbacks) and strtoll is absent on old MSVC.

Add two cases so the size-rule scan-time neutrality is pinned for the '>'
operator too, not only '<': -*.jpg*[>10] stays neutral at scan time and
cancels once the size is known.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche xroche merged commit b138c87 into master Jun 26, 2026
13 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.

1 participant