From 7740739b79d0e694d6a15fa000c30bae028d8785 Mon Sep 17 00:00:00 2001 From: Jens Geyer Date: Tue, 11 Dec 2012 23:38:12 +0100 Subject: [PATCH] THRIFT-1765 Incorrect error message printed for null or negative keys --- compiler/cpp/src/thrifty.yy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cpp/src/thrifty.yy b/compiler/cpp/src/thrifty.yy index 696fd462..0a7f184e 100644 --- a/compiler/cpp/src/thrifty.yy +++ b/compiler/cpp/src/thrifty.yy @@ -960,7 +960,7 @@ FieldIdentifier: * warn if the user-specified negative value isn't what * thrift would have auto-assigned. */ - pwarning(1, "Negative field key (%d) differs from what would be " + pwarning(1, "Nonpositive field key (%"PRIi64") differs from what would be " "auto-assigned by thrift (%d).\n", $1, y_field_val); } /* @@ -971,7 +971,7 @@ FieldIdentifier: $$.value = $1; $$.auto_assigned = false; } else { - pwarning(1, "Nonpositive value (%d) not allowed as a field key.\n", + pwarning(1, "Nonpositive value (%"PRIi64") not allowed as a field key.\n", $1); $$.value = y_field_val--; $$.auto_assigned = true; -- 2.17.1