Skip to content

Fix compilation when PPRINTINT_TEST is set#365

Merged
mikkelfj merged 1 commit into
dvidelabs:masterfrom
mbrukman:fix-compilation-pprintint
Apr 11, 2026
Merged

Fix compilation when PPRINTINT_TEST is set#365
mikkelfj merged 1 commit into
dvidelabs:masterfrom
mbrukman:fix-compilation-pprintint

Conversation

@mbrukman

Copy link
Copy Markdown
Contributor
  • Add missing parens inside if statement calling strcmp()
  • Add missing 0 parameter to print_bool()

Before this change:

$CC pprintint.h                    # success
$CC -DPPRINTINT_TEST pprintint.h   # failure

After this change:

$CC pprintint.h                    # success
$CC -DPPRINTINT_TEST pprintint.h   # success

Tested with both Clang and GCC.

* Add missing parens inside `if` statement calling `strcmp()`
* Add missing `0` parameter to `print_bool()`

Before this change:

    $CC pprintint.h                    # success
    $CC -DPPRINTINT_TEST pprintint.h   # failure

After this change:

    $CC pprintint.h                    # success
    $CC -DPPRINTINT_TEST pprintint.h   # success

Tested with both Clang and GCC.
@mikkelfj
mikkelfj merged commit 8f43f8b into dvidelabs:master Apr 11, 2026
1 check passed
@mikkelfj

Copy link
Copy Markdown
Contributor

thanks

@mbrukman
mbrukman deleted the fix-compilation-pprintint branch April 11, 2026 18:24
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