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 <1465949470.93.0.797681694171.issue27278@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-06-15 00:11:10martin.pantersetrecipients: + martin.panter, vstinner, python-dev
2016-06-15 00:11:10martin.pantersetmessageid: <1465949470.93.0.797681694171.issue27278@psf.upfronthosting.co.za>
2016-06-15 00:11:10martin.panterlinkissue27278 messages
2016-06-15 00:11:10martin.pantercreate