summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-03-05 22:34:35 -0800
committerGitHub <noreply@github.com>2017-03-05 22:34:35 -0800
commit1a4b8e608b073af430f21f3c49ca39fe21f95d24 (patch)
treef7e72cd2eefaf08df58d7e4ded6aa11f28579f3d /src
parent4dde8f876dec0efd1f3bf2b0b594a57ef6ac774a (diff)
parent4f1e3da8502100c63e9708107a9a13e77ca86f11 (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.rs2
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"),