Browse Source

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
pull/14014/head
Victor Stinner 7 years ago
committed by GitHub
parent
commit
376ce9852e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Objects/codeobject.c

2
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;
}

Loading…
Cancel
Save