diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-03-05 22:34:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-05 22:34:35 -0800 |
commit | 1a4b8e608b073af430f21f3c49ca39fe21f95d24 (patch) | |
tree | f7e72cd2eefaf08df58d7e4ded6aa11f28579f3d /src | |
parent | 4dde8f876dec0efd1f3bf2b0b594a57ef6ac774a (diff) | |
parent | 4f1e3da8502100c63e9708107a9a13e77ca86f11 (diff) |
Auto merge of #559 - beduino-project:master, r=emilio
Use c_schar instead of c_char
The signedness of the C type 'char' is implementation defined. The
rust type c_schar exists for this reason. Use it.
Diffstat (limited to 'src')
-rw-r--r-- | src/codegen/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs index fb07eaf8..77941fa3 100644 --- a/src/codegen/mod.rs +++ b/src/codegen/mod.rs @@ -2138,7 +2138,7 @@ impl ToRustTy for Type { TypeKind::Int(ik) => { match ik { IntKind::Bool => aster::ty::TyBuilder::new().bool(), - IntKind::Char => raw_type(ctx, "c_char"), + IntKind::Char => raw_type(ctx, "c_schar"), IntKind::UChar => raw_type(ctx, "c_uchar"), IntKind::Short => raw_type(ctx, "c_short"), IntKind::UShort => raw_type(ctx, "c_ushort"), |