summaryrefslogtreecommitdiff
path: root/src/isolate.rs
diff options
context:
space:
mode:
authorandy finch <andyfinch7@gmail.com>2019-02-26 03:56:19 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-02-26 03:56:19 -0500
commit9ed413b318def875df134dddc1d0fee00a75913a (patch)
treecd1297004e5d09aa449aeaba998b49bee6322216 /src/isolate.rs
parentd426d78ae71dd69d77d7354b515762fc7e0b8a4b (diff)
Updated some type assertions to work with other libc implementations. (#1837)
Diffstat (limited to 'src/isolate.rs')
-rw-r--r--src/isolate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/isolate.rs b/src/isolate.rs
index 661e49edd..63f45b5df 100644
--- a/src/isolate.rs
+++ b/src/isolate.rs
@@ -287,10 +287,10 @@ impl Isolate {
source: String,
) -> Result<libdeno::deno_mod, JSError> {
let name_ = CString::new(name.clone()).unwrap();
- let name_ptr = name_.as_ptr() as *const i8;
+ let name_ptr = name_.as_ptr() as *const c_char;
let source_ = CString::new(source.clone()).unwrap();
- let source_ptr = source_.as_ptr() as *const i8;
+ let source_ptr = source_.as_ptr() as *const c_char;
let id = unsafe {
libdeno::deno_mod_new(self.libdeno_isolate, name_ptr, source_ptr)