express/mapping: fix breaking generation after f23db9440f

It was failing to map `int64_t` to `Argument_INT` enum.
This commit is contained in:
Andrej730
2026-08-19 16:47:46 +05:00
parent 2cebc3f60b
commit f78b380b71
@@ -41,6 +41,15 @@ class Mapping:
"binary": "boost::dynamic_bitset<>",
}
cpp_to_argument_types = {
"boolean": "BOOL",
"logical": "LOGICAL",
"integer": "INT",
"real": "DOUBLE",
"number": "DOUBLE",
"string": "STRING",
}
supported_argument_types = set(
[
"INT",
@@ -139,8 +148,8 @@ class Mapping:
if ty == "UNKNOWN":
return "UNKNOWN"
return "AGGREGATE_OF_" + ty
elif str(type) in self.express_to_cpp_typemapping:
return self.express_to_cpp_typemapping.get(str(type), type).split("::")[-1].upper()
elif (ty := self.cpp_to_argument_types.get(str(type))) is not None:
return ty
elif self.schema.is_type(type):
return _make_argument_type(self.schema.types[type].type)
else: