mmomtchev / swig

This is SWIG JavaScript Evolution, a fork of the SWIG project with modern JavaScript/TypeScript support including WASM and async
http://www.swig.org
Other
7 stars 0 forks source link

Compiling SWIG-generated wrappers with `clang` on Windows fails #37

Open mmomtchev opened 4 months ago

mmomtchev commented 4 months ago
"clang++.cmd" "-Iexample.node.p" "-I." "-I..\.." "-I..\..\node_modules\node-addon-api" "-I..\..\src" "-fcolor-diagnostics" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wnon-virtual-dtor" "-std=c++17" "-O0" "-g" "-isystemC:\Users\mmom\AppData\Local\node-gyp\Cache\18.19.0\include\node" "-fpermissive" -MD -MQ example.node.p/build_example_wrap.cc.obj -MF "example.node.p\build_example_wrap.cc.obj.d" -o example.node.p/build_example_wrap.cc.obj "-c" ../../build/example_wrap.cc
../../build/example_wrap.cc:3210:12: error: cast from pointer to smaller type 'long' loses information
 3210 |   result = (long)arg1;
      |            ^~~~~~~~~~
1 error generated.