diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-12 02:41:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 02:41:16 (GMT) |
commit | 376ce9852eec4e97745c723f0dd0fe64383c6cd3 (patch) | |
tree | 3fc93269e8a04705aa9f92a704780c1bb5a53f12 /Objects/codeobject.c | |
parent | eb976e47e261760330c1bed224019b073b05e994 (diff) | |
download | cpython-376ce9852eec4e97745c723f0dd0fe64383c6cd3.zip cpython-376ce9852eec4e97745c723f0dd0fe64383c6cd3.tar.gz cpython-376ce9852eec4e97745c723f0dd0fe64383c6cd3.tar.bz2 |
bpo-26219: Fix compiler warning in _PyCode_InitOpcache() (GH-13997)
Fix MSVC warning:
objects\codeobject.c(285): warning C4244: '=':
conversion from 'Py_ssize_t' to 'unsigned char',
possible loss of data
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 63ce479..1333cc83 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -282,7 +282,7 @@ _PyCode_InitOpcache(PyCodeObject *co) co->co_opcache = NULL; } - co->co_opcache_size = opts; + co->co_opcache_size = (unsigned char)opts; return 0; } |