Skip to content

Fix compilation errors and bugs for modern toolchains#6

Open
andromedus6 wants to merge 1 commit intoKerryL:masterfrom
andromedus6:claude/eager-volhard
Open

Fix compilation errors and bugs for modern toolchains#6
andromedus6 wants to merge 1 commit intoKerryL:masterfrom
andromedus6:claude/eager-volhard

Conversation

@andromedus6
Copy link

Summary

  • Replace deprecated vsprintf with vsnprintf for macOS compatibility
  • Fix uint/size_t type mismatch in expression parser (always-true comparison on 64-bit)
  • Update wxXmlDocument::Load call for wxWidgets 3.3 compatibility
  • Fix off-by-one bug in DuplicateGroupsExist that skipped the first group
  • Guard against log10(0) / log10(negative) crash in UpdateConversion
  • Remove dead code and unreachable statements

Test plan

  • Clean build succeeds with -Wall -Wextra -Werror and zero warnings
  • Verify unit conversions produce correct results (manual spot check)
  • Confirm duplicate group detection works for first group in list

🤖 Generated with Claude Code

- Replace deprecated vsprintf with vsnprintf (macOS deprecation)
- Fix uint/size_t type mismatch in ExpressionTree::FindEndOfNextTerm
- Remove deprecated encoding parameter from wxXmlDocument::Load (wxWidgets 3.3)
- Remove dead code (unused variable and loop) in GetControlOnActiveTab
- Fix off-by-one in DuplicateGroupsExist (first group was skipped, wrong name in error message)
- Guard against log10(0) and log10(negative) in UpdateConversion
- Remove unreachable return after throw in GetGroupNode
- Replace NULL with nullptr in GetNode

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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