Suppress compiler warning in new jsonb_plperl code.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Apr 2018 18:47:26 +0000 (14:47 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Apr 2018 18:47:26 +0000 (14:47 -0400)
commitd4a4c3d5b433513fc38ce60e454d2c86e8bd0ed4
tree9578c3c4a3319add92482c60fadac29a56dbceae
parent242408dbef283ff148a3a671a7f4ebbad6118b22
Suppress compiler warning in new jsonb_plperl code.

Some compilers are evidently pickier than others about whether Perl's
I32 typedef should be considered equivalent to int.  Dodge the problem
by using a separate variable; the prior coding was a bit confusing anyway.

Per buildfarm.  Note this does nothing to fix the test failures due to
SV_to_JsonbValue not covering enough variable types.
contrib/jsonb_plperl/jsonb_plperl.c