Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
Fixed a type assertion to be compatible with other libc versions. (#64)
Browse files Browse the repository at this point in the history
* Fix this type assertion to be compatible with different variations of libc.

* Added missing semicolon.
  • Loading branch information
afinch7 authored and jeromegn committed Feb 22, 2019
1 parent bbd54e2 commit b618f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v8env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::ffi::CString;
use std::fs::File;
use std::io::Read;
use std::slice;
use libc::c_char;

#[cfg(not(debug_assertions))]
const V8ENV_SNAPSHOT: &'static [u8] = include_bytes!("../v8env.bin");
Expand All @@ -27,7 +28,7 @@ lazy_static! {

lazy_static! {
pub static ref FLY_SNAPSHOT: fly_simple_buf = fly_simple_buf {
ptr: V8ENV_SNAPSHOT.as_ptr() as *const i8,
ptr: V8ENV_SNAPSHOT.as_ptr() as *const c_char,
len: V8ENV_SNAPSHOT.len() as i32
};
}
Expand Down

0 comments on commit b618f7d

Please sign in to comment.