mirror of
https://github.com/VSCodium/policy-watcher.git
synced 2025-12-10 18:46:06 -06:00
fix: enable some disabled compiler warnings (#10)
* fix: enable some disabled compiler warnings * chore: use static cast
This commit is contained in:
parent
a7ccf757c8
commit
f4d328808e
@ -55,8 +55,10 @@
|
||||
'/W3',
|
||||
'/Qspectre',
|
||||
'/guard:cf',
|
||||
'-std:c++17'
|
||||
]
|
||||
'-std:c++17',
|
||||
'/w34244',
|
||||
'/w34267'
|
||||
],
|
||||
},
|
||||
'VCLinkerTool': {
|
||||
'AdditionalOptions': [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vscode-policy-watcher",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user