[前][次][番号順一覧][スレッド一覧]

ruby-changes:39159

From: kazu <ko1@a...>
Date: Wed, 15 Jul 2015 00:01:59 +0900 (JST)
Subject: [ruby-changes:39159] kazu:r51240 (trunk): fix compile error with clang

kazu	2015-07-15 00:01:39 +0900 (Wed, 15 Jul 2015)

  New Revision: 51240

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51240

  Log:
    fix compile error with clang
    
    * random.c (fill_random_bytes_syscall): fix compile error with
      clang. [ruby-core:69931] [Bug #11343]

  Modified files:
    trunk/ChangeLog
    trunk/random.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51239)
+++ ChangeLog	(revision 51240)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 15 00:00:00 2015  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* random.c (fill_random_bytes_syscall): fix compile error with
+	  clang. [ruby-core:69931] [Bug #11343]
+
 Tue Jul 14 11:22:42 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#register):
Index: random.c
===================================================================
--- random.c	(revision 51239)
+++ random.c	(revision 51240)
@@ -521,7 +521,7 @@ fill_random_bytes_syscall(void *seed, si https://github.com/ruby/ruby/blob/trunk/random.c#L521
 {
     static rb_atomic_t try_syscall = 1;
     if (try_syscall) {
-	int ret;
+	long ret;
 	errno = 0;
 	ret = syscall(SYS_getrandom, seed, size, 0);
 	if (errno == ENOSYS) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]