Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Large integers get truncated #594

@r-barnes

Description

@r-barnes

In our application we have some loggers that trigger every millisecond.

This is problematic since LogMessage uses a signed 32-bit integer as the counter type (see here) which can lead to a wrap every 24.85. This is bad for long-running processes.

It would probably be better if LogMessage used uint64_t or size_t as the counter type.

If there's a size concern, then using uint32 as the data type would at least double the time before wrap around.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions