Skip to content

Commit

Permalink
Fix printf to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kamahen authored and JanWielemaker committed Feb 12, 2023
1 parent 282d7db commit ae64bc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/c/jpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@ save_jref(atom_t jref, IOSTREAM *fd)
{ jref_handle *ref = PL_blob_data(jref, NULL, NULL);
(void)fd;

return PL_warning("Cannot save reference to <jref>(%p)", ref->iref);
/* TODO: "%p",(void*)ref->iref should be "0x" PRIxPTR, ref->iref
(and elsewhere in this file). */
return PL_warning("Cannot save reference to <jref>(%p)", (void*)ref->iref);
}

static atom_t
Expand Down

0 comments on commit ae64bc7

Please sign in to comment.