Skip to content

Commit

Permalink
Merge pull request #7141 from dylanjtuttle/format
Browse files Browse the repository at this point in the history
Cast pid_t to int64_t for use in format specifiers
  • Loading branch information
hzongaro committed Nov 10, 2023
2 parents 811ded6 + d35c1a7 commit 3a12f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/ras/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4952,8 +4952,8 @@ void TR_Debug::setupDebugger(void *addr)
char * Argv[20];

yield();
sprintf(cfname, "_%ld_", getpid());
sprintf(pp,"%ld", ppid);
sprintf(cfname, "_%" OMR_PRId64 "_", (int64_t)getpid());
sprintf(pp, "%" OMR_PRId64, (int64_t)ppid);
Argv[1] = "-a";
Argv[2] = pp;
Argv[3] = NULL;
Expand Down

0 comments on commit 3a12f6a

Please sign in to comment.