loci: fix compiler warning due to large constant
diff --git a/c_gen/templates/loci_validator.c b/c_gen/templates/loci_validator.c
index 4a5a692..a275029 100644
--- a/c_gen/templates/loci_validator.c
+++ b/c_gen/templates/loci_validator.c
@@ -129,7 +129,7 @@
switch (wire_type) {
:: for subclass in proto.classes:
:: if subclass.superclass == ofclass:
- case ${subclass.member_by_name(discriminator.name).value}:
+ case ${hex(subclass.member_by_name(discriminator.name).value)}:
return ${validator_name(subclass)}(data, len, out_len);
:: #endif
:: #endfor