From bc9d7a8db628d77adbc738ee11a63ceac6c3fe39 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Wed, 24 Mar 2021 04:47:52 -0700 Subject: [PATCH] Properly handle unsigned-by-default char types PiperOrigin-RevId: 364774936 Change-Id: I2e411555d98cad128945949ea3eedb045af0421d --- sandboxed_api/tools/generator2/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxed_api/tools/generator2/code.py b/sandboxed_api/tools/generator2/code.py index ab8eba2..113527e 100644 --- a/sandboxed_api/tools/generator2/code.py +++ b/sandboxed_api/tools/generator2/code.py @@ -82,7 +82,7 @@ def _stringify_tokens(tokens, separator='\n'): TYPE_MAPPING = { cindex.TypeKind.VOID: '::sapi::v::Void', cindex.TypeKind.CHAR_S: '::sapi::v::Char', - cindex.TypeKind.CHAR_U: '::sapi::v::UChar', + cindex.TypeKind.CHAR_U: '::sapi::v::Char', cindex.TypeKind.INT: '::sapi::v::Int', cindex.TypeKind.UINT: '::sapi::v::UInt', cindex.TypeKind.LONG: '::sapi::v::Long',