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

ruby-changes:44584

From: nobu <ko1@a...>
Date: Mon, 7 Nov 2016 12:29:01 +0900 (JST)
Subject: [ruby-changes:44584] nobu:r56657 (trunk): add cast

nobu	2016-11-07 12:28:57 +0900 (Mon, 07 Nov 2016)

  New Revision: 56657

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

  Log:
    add cast
    
    * hash.c (rb_objid_hash): need to cast down.

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 56656)
+++ hash.c	(revision 56657)
@@ -271,7 +271,7 @@ key64_hash (uint64_t key, uint32_t seed) https://github.com/ruby/ruby/blob/trunk/hash.c#L271
 long
 rb_objid_hash(st_index_t index)
 {
-    return key64_hash(index, (uint32_t) prime2);
+    return (long)key64_hash(index, (uint32_t)prime2);
 }
 
 static st_index_t

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

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