Merge: FFI clean up
[nit.git] / src / nitni / nitni_base.nit
index a50aa8f..f5cccc0 100644 (file)
@@ -78,7 +78,7 @@ redef class MType
        #   Pointer -> Pointer
        fun mangled_cname: String is abstract
 
-       # Does this types has a primitive representation?
+       # Does this type have a primitive representation?
        #
        #   type Object is_primitive? false
        #   type Pointer is_primitive? true
@@ -121,7 +121,7 @@ redef class MClassType
        redef fun mangled_cname do return mclass.name
 
        redef fun is_cprimitive do return mclass.kind == extern_kind or
-                       (once ["Bool", "Char", "Float", "Int", "NativeString"]).has(mclass.name)
+                       (once ["Bool", "Char", "Float", "Int", "NativeString", "Byte"]).has(mclass.name)
 end
 
 redef class MNullableType