Skip to content

tool_paramhlp: simplify number parsing - #20134

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/param-numbers
Closed

tool_paramhlp: simplify number parsing#20134
bagder wants to merge 2 commits into
masterfrom
bagder/param-numbers

Conversation

@bagder

@bagder bagder commented Dec 31, 2025

Copy link
Copy Markdown
Member

No description provided.

@bagder
bagder marked this pull request as ready for review December 31, 2025 17:18
@bagder
bagder requested a review from Copilot December 31, 2025 17:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request attempts to simplify number parsing in tool_paramhlp.c by removing the getnum helper function and inlining its logic directly into str2num and oct2nummax. However, the refactoring introduces critical bugs.

  • Removed the getnum helper function
  • Inlined number parsing logic into str2num and oct2nummax
  • Updated str2unum to call str2num directly

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/tool_paramhlp.c
Comment thread src/tool_paramhlp.c
Comment thread src/tool_paramhlp.c Outdated
@bagder bagder closed this in c7b26b6 Jan 1, 2026
@bagder
bagder deleted the bagder/param-numbers branch January 1, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants