Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix types so it compiles

  • Loading branch information...
commit 30254a8efb397c0ff3a30e72277f4e8e373eb6b4 1 parent 9d4e5e6
@isaacs authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/bloom_wrapper.cc
View
6 src/bloom_wrapper.cc
@@ -61,11 +61,11 @@ class BloomFilter: ObjectWrap
{
HandleScope scope;
if(args.Length() == 1 && args[0]->IsNumber()) {
- double value = args[0]->NumberValue();
- BloomFilter* hw = new BloomFilter(value);
+ int value = args[0]->Int32Value();
+ BloomFilter* hw = new BloomFilter((size_t) value);
hw->Wrap(args.This());
} else {
- BloomFilter* hw = new BloomFilter(10000);
+ BloomFilter* hw = new BloomFilter((size_t) 10000);
hw->Wrap(args.This());
}
return args.This();
Please sign in to comment.
Something went wrong with that request. Please try again.