Message268595
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:10 | martin.panter | set | recipients:
+ martin.panter, vstinner, python-dev |
2016-06-15 00:11:10 | martin.panter | set | messageid: <1465949470.93.0.797681694171.issue27278@psf.upfronthosting.co.za> |
2016-06-15 00:11:10 | martin.panter | link | issue27278 messages |
2016-06-15 00:11:10 | martin.panter | create | |
|