From: Jens Geyer Date: Tue, 11 Dec 2012 22:38:12 +0000 (+0100) Subject: THRIFT-1765 Incorrect error message printed for null or negative keys X-Git-Tag: 0.9.1~231 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=7740739b79d0e694d6a15fa000c30bae028d8785;p=common%2Fthrift.git THRIFT-1765 Incorrect error message printed for null or negative keys --- 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;