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

ruby-changes:29844

From: nobu <ko1@a...>
Date: Wed, 10 Jul 2013 20:48:37 +0900 (JST)
Subject: [ruby-changes:29844] nobu:r41896 (trunk): bignum.c: sizeof_bdigit_dbl

nobu	2013-07-10 20:48:24 +0900 (Wed, 10 Jul 2013)

  New Revision: 41896

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

  Log:
    bignum.c: sizeof_bdigit_dbl
    
    * bignum.c (sizeof_bdigit_dbl): check sizeof(BDIGIT_DBL).

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41895)
+++ ChangeLog	(revision 41896)
@@ -1,4 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
-Wed Jul 10 20:47:51 2013  Nobuyoshi Nakada  <nobu@r...>
+Wed Jul 10 20:48:22 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* bignum.c (sizeof_bdigit_dbl): check sizeof(BDIGIT_DBL).
 
 	* internal.h (STATIC_ASSERT): move from enum.c.
 
Index: bignum.c
===================================================================
--- bignum.c	(revision 41895)
+++ bignum.c	(revision 41896)
@@ -44,6 +44,8 @@ static VALUE big_three = Qnil; https://github.com/ruby/ruby/blob/trunk/bignum.c#L44
 # endif
 #endif
 
+STATIC_ASSERT(sizeof_bdigit_dbl, sizeof(BDIGIT_DBL) == SIZEOF_BDIGIT_DBL);
+
 #ifdef WORDS_BIGENDIAN
 #   define HOST_BIGENDIAN_P 1
 #else

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

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