Skip to content

Conversation

@XuechunHou
Copy link
Contributor

@XuechunHou XuechunHou commented Jul 22, 2025

Description

Used ottl.ParseInt(hexString, 16) to convert certain hex strings to int64. Hex strings without 0x prefix, e.g: "AFFFF", "+123C" , "-1b1b" are converted to int64 with ottl.ParseInt(hexString, 16)

Related issue

b/424478327

How has this been tested?

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

Copy link
Member

Choose a reason for hiding this comment

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

It's equivalent to a uint64 in Go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@XuechunHou XuechunHou merged commit 173f455 into master Jul 24, 2025
46 of 68 checks passed
@XuechunHou XuechunHou deleted the hex-string branch July 24, 2025 04:45
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