diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index 3f4c12b77..5abe54612 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -1146,8 +1146,13 @@ encode_params (const type_t *type) count = -type->func.num_params - 1; else count = type->func.num_params; - for (i = 0; i < count; i++) + for (i = 0; i < count; i++) { + // in is the default qualifier + if (type->func.param_quals[i] != pq_in) { + dasprintf (encoding, "%c", "c_Oo"[type->func.param_quals[i]]); + } encode_type (encoding, unalias_type (type->func.param_types[i])); + } if (type->func.num_params < 0) dasprintf (encoding, ".");