Skip to content

Fix unintentionally persistent std::hex on output streams#148

Open
lucic71 wants to merge 1 commit intogoogle:masterfrom
lucic71:std-hex
Open

Fix unintentionally persistent std::hex on output streams#148
lucic71 wants to merge 1 commit intogoogle:masterfrom
lucic71:std-hex

Conversation

@lucic71
Copy link

@lucic71 lucic71 commented Feb 5, 2026

std::hex is a sticky I/O manipulator. Once set, it affects all subsequent integer output on the stream until explicitly reset with std::dec.

Of the 4 usages of std::hex in the codebase, 2 were missing a corresponding std::dec. This PR adds the missing resets so all usages consistently restore the stream to decimal formatting.

cc: @nunoplopes

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