Skip to content

Commit b091903

Browse files
committed
fix compile error with clang
* random.c (fill_random_bytes_syscall): fix compile error with clang. [ruby-core:69931] [Bug ruby#11343] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 4ba1038 commit b091903

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Wed Jul 15 00:00:00 2015 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
2+
3+
* random.c (fill_random_bytes_syscall): fix compile error with
4+
clang. [ruby-core:69931] [Bug #11343]
5+
16
Tue Jul 14 11:22:42 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#register):

random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ fill_random_bytes_syscall(void *seed, size_t size)
521521
{
522522
static rb_atomic_t try_syscall = 1;
523523
if (try_syscall) {
524-
int ret;
524+
long ret;
525525
errno = 0;
526526
ret = syscall(SYS_getrandom, seed, size, 0);
527527
if (errno == ENOSYS) {

0 commit comments

Comments
 (0)