Skip to content

fix: use %lx and unsigned long for tid to avoid pointer-to-int cast warning#316

Merged
deemar merged 1 commit into
HardySimpson:masterfrom
narfa0215:master
Dec 27, 2025
Merged

fix: use %lx and unsigned long for tid to avoid pointer-to-int cast warning#316
deemar merged 1 commit into
HardySimpson:masterfrom
narfa0215:master

Conversation

@narfa0215

Copy link
Copy Markdown
Contributor

Change a_event->tid_hex_str_len assignment to use:
a_event->tid_hex_str_len = sprintf(a_event->tid_hex_str, "%lx", (unsigned long)a_event->tid);

This fixes the -Wpointer-to-int-cast error on 64-bit systems.

…arning

Change a_event->tid_hex_str_len assignment to use:
    a_event->tid_hex_str_len = sprintf(a_event->tid_hex_str, "%lx", (unsigned long)a_event->tid);

This fixes the -Wpointer-to-int-cast error on 64-bit systems.
@deemar deemar merged commit c0e0346 into HardySimpson:master Dec 27, 2025
14 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.

2 participants