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

ruby-changes:52520

From: nobu <ko1@a...>
Date: Thu, 13 Sep 2018 19:59:18 +0900 (JST)
Subject: [ruby-changes:52520] nobu:r64731 (trunk): thread.c: fix -Wformat warning where uint64_t is not unsigned long

nobu	2018-09-13 19:59:12 +0900 (Thu, 13 Sep 2018)

  New Revision: 64731

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

  Log:
    thread.c: fix -Wformat warning where uint64_t is not unsigned long

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 64730)
+++ thread.c	(revision 64731)
@@ -1216,7 +1216,7 @@ hrtime_update_expire(rb_hrtime_t *timeou https://github.com/ruby/ruby/blob/trunk/thread.c#L1216
     if (now > end) return 1;
     thread_debug("hrtime_update_expire: "
                  "%"PRI_64_PREFIX"u > %"PRI_64_PREFIX"u\n",
-                 (unsigned long)end, (unsigned long)now);
+                 (uint64_t)end, (uint64_t)now);
     *timeout = end - now;
     return 0;
 }

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

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