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

ruby-changes:17489

From: naruse <ko1@a...>
Date: Thu, 14 Oct 2010 09:09:17 +0900 (JST)
Subject: [ruby-changes:17489] Ruby:r29494 (trunk): Refix for r29493; it is unsigned.

naruse	2010-10-14 09:09:07 +0900 (Thu, 14 Oct 2010)

  New Revision: 29494

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

  Log:
    Refix for r29493; it is unsigned.

  Modified files:
    trunk/file.c

Index: file.c
===================================================================
--- file.c	(revision 29493)
+++ file.c	(revision 29494)
@@ -317,11 +317,11 @@
 #define ST2UINT(val) ((val) & ~(~1UL << (sizeof(val) * CHAR_BIT - 1)))
 
 #if SIZEOF_DEV_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
-# define DEVT2NUM(v) LL2NUM(v)
+# define DEVT2NUM(v) ULL2NUM(v)
 #elif SIZEOF_DEV_T == SIZEOF_LONG
-# define DEVT2NUM(v) LONG2NUM(v)
+# define DEVT2NUM(v) ULONG2NUM(v)
 #else
-# define DEVT2NUM(v) INT2NUM(v)
+# define DEVT2NUM(v) UINT2NUM(v)
 #endif
 
 /*

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

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