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

ruby-changes:33311

From: nobu <ko1@a...>
Date: Sun, 23 Mar 2014 23:47:08 +0900 (JST)
Subject: [ruby-changes:33311] nobu:r45390 (trunk): .gdbinit: use st_numhash

nobu	2014-03-23 23:47:04 +0900 (Sun, 23 Mar 2014)

  New Revision: 45390

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

  Log:
    .gdbinit: use st_numhash
    
    * .gdbinit (rb_numtable_entry): use st_numhash() to follow r45384.

  Modified files:
    trunk/.gdbinit
Index: .gdbinit
===================================================================
--- .gdbinit	(revision 45389)
+++ .gdbinit	(revision 45390)
@@ -731,7 +731,7 @@ define rb_numtable_entry https://github.com/ruby/ruby/blob/trunk/.gdbinit#L731
       end
     end
   else
-    set $rb_numtable_p = $rb_numtable_tbl->as.big.bins[$rb_numtable_id % $rb_numtable_tbl->num_bins]
+    set $rb_numtable_p = $rb_numtable_tbl->as.big.bins[st_numhash($rb_numtable_id) % $rb_numtable_tbl->num_bins]
     while $rb_numtable_p
       if $rb_numtable_p->key == $rb_numtable_id
 	set $rb_numtable_key = $rb_numtable_p->key

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

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