Skip to content

Commit

Permalink
Use usize for CPU count
Browse files Browse the repository at this point in the history
  • Loading branch information
dflemstr committed Mar 11, 2017
1 parent 9e71af8 commit 1c47dd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/platform.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use v8_sys as v8;
use std::os;
use std::thread;
use std::time;
use num_cpus;
Expand Down Expand Up @@ -97,8 +96,8 @@ extern "C" fn destroy_platform() {
// No-op
}

extern "C" fn number_of_available_background_threads() -> os::raw::c_ulong {
num_cpus::get() as os::raw::c_ulong
extern "C" fn number_of_available_background_threads() -> usize {
num_cpus::get()
}

extern "C" fn call_on_background_thread(task: v8::TaskPtr,
Expand Down

0 comments on commit 1c47dd5

Please sign in to comment.