node-iptrie icon indicating copy to clipboard operation
node-iptrie copied to clipboard

gyp fails with: error: no matching function for call to ‘v8::Value::ToUint32()’

Open vhammond-inap opened this issue 5 years ago • 0 comments

After running npm install iptrie with node 10.15.2 and npm 5.8.0

../src/iptrie.cc:181:42: error: no matching function for call to ‘v8::Value::ToUint32()’ int prefix_len = args[1]->ToUint32()->Value();

I patched my local like so

  •  int prefix_len = args[1]->ToUint32()->Value();
    
  •  int prefix_len = args[1]->IntegerValue();
    

on lines 182 and 211 (diff attached)

git-diff.txt

vhammond-inap avatar Apr 27 '20 19:04 vhammond-inap