diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-04-22 10:31:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 10:31:46 -0700 |
commit | 36aecc0079af0ec65add8ffb5bcdea9a594baca4 (patch) | |
tree | d5a4df73c3124685c82237c69f1f2732355f7c8c /PC | |
parent | 7038deed09784a03e2a7bad500f0054d29876ae7 (diff) | |
download | cpython-git-36aecc0079af0ec65add8ffb5bcdea9a594baca4.tar.gz |
bpo-36672: Fix a compiler warning in winreg.SetValue() (GH-12882)
(cherry picked from commit 34366b7f914eedbcc33aebe882098a2199ffaf82)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'PC')
-rw-r--r-- | PC/winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c index 96dd4ef059..1021609e58 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -1609,7 +1609,7 @@ winreg_SetValue_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key, } Py_BEGIN_ALLOW_THREADS - rc = RegSetValueW(key, sub_key, REG_SZ, value, value_length+1); + rc = RegSetValueW(key, sub_key, REG_SZ, value, (DWORD)(value_length + 1)); Py_END_ALLOW_THREADS if (rc != ERROR_SUCCESS) return PyErr_SetFromWindowsErrWithFunction(rc, "RegSetValue"); |