From f46b58b09d928bf71800d89a9ef563fd66e365d9 Mon Sep 17 00:00:00 2001 From: Unknown User <52547845+unknown-v@users.noreply.github.com> Date: Thu, 17 Oct 2019 10:06:54 +0200 Subject: [PATCH] int: i64 hex() use PRIx64 --- vlib/builtin/int.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/int.v b/vlib/builtin/int.v index d5e56d245c..ce1191fb5e 100644 --- a/vlib/builtin/int.v +++ b/vlib/builtin/int.v @@ -150,7 +150,7 @@ pub fn (n i64) hex() string { 19 } hex := malloc(len) - count := int(C.sprintf(*char(hex), '0x%llx', n)) + count := int(C.sprintf(*char(hex), '0x%' C.PRIx64, n)) return tos(hex, count) }