Convert primitives before passing to host language
authorMatt Corallo <git@bluematt.me>
Fri, 15 Apr 2022 16:11:46 +0000 (16:11 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Apr 2022 16:15:43 +0000 (16:15 +0000)
commitd2b1ddd1a3bc8f3d91cb931b4e08b35c946a4af8
treebfc6b52a6f5f99fe7115890e9b431a315dd4b5d4
parent9aa1eebc40df06586c7ab12f7c8eb22ebcb8b365
Convert primitives before passing to host language

This resolves an issue where we map unsigned primitives to their
signed variants, and occasionally pass the unsigned variant (which
is outside the bounds of the signed variant) to the host language.

In Java this can cause a panic as the VM sees an int outside the
range of a short (for example with network ports).
gen_type_mapping.py