fix: enable some disabled compiler warnings (#10)

* fix: enable some disabled compiler warnings

* chore: use static cast
This commit is contained in:
Raymond Zhao 2023-02-09 05:32:51 -08:00 committed by GitHub
parent a7ccf757c8
commit f4d328808e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -55,8 +55,10 @@
'/W3',
'/Qspectre',
'/guard:cf',
'-std:c++17'
]
'-std:c++17',
'/w34244',
'/w34267'
],
},
'VCLinkerTool': {
'AdditionalOptions': [

View File

@ -1,6 +1,6 @@
{
"name": "vscode-policy-watcher",
"version": "0.0.0",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -17,5 +17,5 @@ long long NumberPolicy::parseRegistryValue(LPBYTE buffer, DWORD bufferSize) cons
Value NumberPolicy::getJSValue(Env env, long long value) const
{
return Number::New(env, value);
return Number::New(env, static_cast<double>(value));
}