From 3a915483b022f78be5c2547786ad55832d9fb028 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 2 Dec 2022 16:13:47 -0500 Subject: [PATCH] IPCCompiler: Mark size_t as a primitive type This allows size_t to be used within an IPC message without being passed by const-reference. --- Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp index 674a1a9952..2e0198164b 100644 --- a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp @@ -63,7 +63,7 @@ struct Endpoint { static bool is_primitive_type(DeprecatedString const& type) { - return type.is_one_of("u8", "i8", "u16", "i16", "u32", "i32", "u64", "i64", "bool", "double", "float", "int", "unsigned", "unsigned int"); + return type.is_one_of("u8", "i8", "u16", "i16", "u32", "i32", "u64", "i64", "size_t", "bool", "double", "float", "int", "unsigned", "unsigned int"); } static bool is_simple_type(DeprecatedString const& type)