Skip to content

Commit

Permalink
fix another warning on 32bit compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mellowcandle committed Jul 12, 2019
1 parent 3fa3a7c commit 4d08ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Ramon Fried <[email protected]>
*/
#include <string.h>
#include <inttypes.h>
#include <ctype.h>
#include "bitwise.h"
#include "shunting-yard.h"
Expand Down Expand Up @@ -135,7 +136,7 @@ static int parse_cmd(char *cmdline)
char result_string[32];

g_val = result;
sprintf(result_string, "0x%lx", result);
sprintf(result_string, "0x%" PRIx64, result);
update_binary();
update_fields(-1);
append_to_history(result_string, TYPE_OUTPUT_RESULT);
Expand Down

0 comments on commit 4d08ea3

Please sign in to comment.