Skip to content

Remove C-style casts - #5186

Merged
marta-lokhova merged 1 commit into
stellar:masterfrom
drebelsky:remove-c-style-casts
Apr 3, 2026
Merged

marta-lokhova merged 1 commit into
stellar:masterfrom
drebelsky:remove-c-style-casts

Conversation

@drebelsky

Copy link
Copy Markdown
Contributor

Mostly a dummy PR to check current branch rules

Copilot AI review requested due to automatic review settings March 18, 2026 22:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces a few C-style casts in CommandHandler JSON construction with static_cast, aligning the code with safer, more explicit C++ casting practices.

Changes:

  • Replace C-style cast of ae.balance with static_cast<Json::Int64>(...).
  • Replace C-style cast of ae.seqNum with static_cast<Json::UInt64>(...).
  • Replace C-style cast of paymentAmount with static_cast<Json::UInt64>(...).

@marta-lokhova
marta-lokhova added this pull request to the merge queue Apr 3, 2026
Merged via the queue into stellar:master with commit 9c35de4 Apr 3, 2026
71 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.

3 participants