From a9578873a5bdf14c47650cc3dd9d21e3bcef2370 Mon Sep 17 00:00:00 2001 From: xleroy Date: Thu, 10 Mar 2011 10:12:09 +0000 Subject: Revised signed/unsigned char handling. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1599 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- cfrontend/C2C.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cfrontend/C2C.ml') diff --git a/cfrontend/C2C.ml b/cfrontend/C2C.ml index 284b825b..23d05029 100644 --- a/cfrontend/C2C.ml +++ b/cfrontend/C2C.ml @@ -239,7 +239,8 @@ let convertInt n = coqint_of_camlint(Int64.to_int32 n) let convertIkind = function | C.IBool -> unsupported "'_Bool' type"; (Unsigned, I8) - | C.IChar -> ((if Configuration.signed_char then Signed else Unsigned), I8) + | C.IChar -> ((if (!Cparser.Machine.config).Cparser.Machine.char_signed + then Signed else Unsigned), I8) | C.ISChar -> (Signed, I8) | C.IUChar -> (Unsigned, I8) | C.IInt -> (Signed, I32) -- cgit