From 0d8345e6f7f2402d3ee88c0eb3d89e0e839bc5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 3 Sep 2016 15:24:45 +0200 Subject: Fix FTBFS with GCC6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kjs/create_hash_table | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kjs') diff --git a/kjs/create_hash_table b/kjs/create_hash_table index a7df5eddf..e8103fb99 100755 --- a/kjs/create_hash_table +++ b/kjs/create_hash_table @@ -69,7 +69,9 @@ while () { my $att = $3; my $param = $4; push(@keys, $key); - push(@values, $val); + # values in HashEntry are short but can be unsigned in C++ code + # therefore it is necessary to force the cast in the generated files + push(@values, "(short)".$val); printf STDERR "WARNING: Number of arguments missing for $key/$val\n" if ( $att =~ m/Function/ && length($param) == 0); push(@attrs, length($att) > 0 ? $att : "0"); -- cgit v1.2.1