node-iptrie
node-iptrie copied to clipboard
gyp fails with: error: no matching function for call to ‘v8::Value::ToUint32()’
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)