This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, python-dev, vstinner
Date 2016-06-15.00:11:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2016-06-15 00:11:10martin.pantersetrecipients: + martin.panter, vstinner, python-dev
2016-06-15 00:11:10martin.pantersetmessageid: <>
2016-06-15 00:11:10martin.panterlinkissue27278 messages
2016-06-15 00:11:10martin.pantercreate