[issue27278] py_getrandom() uses an int for syscall() result
Martin Panter
report at bugs.python.org
Tue Jun 14 20:11:10 EDT 2016
Martin Panter added the comment:
Yeah I think your change is enough.
Adding a cast would solve this compiler warning:
Python/random.c:168:17: warning: conversion to ‘int’ from ‘long int’ may alter its value [-Wconversion]
n = syscall(SYS_getrandom, dest, n, flags);
^
But on the other hand, when I just recompiled Python with -Wconversion, I got hundreds of other warnings, so maybe there is a good reason we don’t enable that warning.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27278>
_______________________________________
More information about the Python-bugs-list
mailing list