-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix another warning on 32bit compilation
- Loading branch information
1 parent
3fa3a7c
commit 4d08ea3
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
* Ramon Fried <[email protected]> | ||
*/ | ||
#include <string.h> | ||
#include <inttypes.h> | ||
#include <ctype.h> | ||
#include "bitwise.h" | ||
#include "shunting-yard.h" | ||
|
@@ -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); | ||
|