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

ruby-changes:33532

From: nobu <ko1@a...>
Date: Thu, 17 Apr 2014 17:24:20 +0900 (JST)
Subject: [ruby-changes:33532] nobu:r45613 (trunk): gc.c: suppress a warning

nobu	2014-04-17 17:24:10 +0900 (Thu, 17 Apr 2014)

  New Revision: 45613

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

  Log:
    gc.c: suppress a warning
    
    * gc.c (get_envparam_size): suppress a warning by char-subscripts.

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 45612)
+++ gc.c	(revision 45613)
@@ -5740,7 +5740,7 @@ get_envparam_size(const char *name, size https://github.com/ruby/ruby/blob/trunk/gc.c#L5740
 	    ++end;
 	    break;
 	}
-	while (*end && isspace(*end)) end++;
+	while (*end && isspace((unsigned char)*end)) end++;
 	if (*end) {
 	    if (RTEST(ruby_verbose)) fprintf(stderr, "invalid string for %s: %s\n", name, ptr);
 	    return 0;

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

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