Skip to content

Remove C-style casts#5186

Open
drebelsky wants to merge 1 commit intostellar:masterfrom
drebelsky:remove-c-style-casts
Open

Remove C-style casts#5186
drebelsky wants to merge 1 commit intostellar:masterfrom
drebelsky:remove-c-style-casts

Conversation

@drebelsky
Copy link
Contributor

Mostly a dummy PR to check current branch rules

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

Copilot AI left a comment

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>(...).

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.

2 participants