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

ruby-changes:14496

From: nobu <ko1@a...>
Date: Sun, 17 Jan 2010 14:26:22 +0900 (JST)
Subject: [ruby-changes:14496] Ruby:r26333 (trunk): * ext/iconv/iconv.c (rb_str_derive): use long.

nobu	2010-01-17 14:24:36 +0900 (Sun, 17 Jan 2010)

  New Revision: 26333

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

  Log:
    * ext/iconv/iconv.c (rb_str_derive): use long.

  Modified files:
    trunk/ChangeLog
    trunk/ext/iconv/iconv.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26332)
+++ ChangeLog	(revision 26333)
@@ -1,5 +1,7 @@
-Sun Jan 17 14:23:23 2010  Nobuyoshi Nakada  <nobu@r...>
+Sun Jan 17 14:24:35 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* ext/iconv/iconv.c (rb_str_derive): use long.
+
 	* ext/iconv/iconv.c (iconv_convert): suppress a warning.
 
 	* lib/mkmf.rb (check_signedness): new method.
Index: ext/iconv/iconv.c
===================================================================
--- ext/iconv/iconv.c	(revision 26332)
+++ ext/iconv/iconv.c	(revision 26333)
@@ -115,7 +115,7 @@
 static void iconv_dfree _((void *cd));
 static VALUE iconv_free _((VALUE cd));
 static VALUE iconv_try _((iconv_t cd, const char **inptr, size_t *inlen, char **outptr, size_t *outlen));
-static VALUE rb_str_derive _((VALUE str, const char* ptr, int len));
+static VALUE rb_str_derive _((VALUE str, const char* ptr, long len));
 static VALUE iconv_convert _((iconv_t cd, VALUE str, long start, long length, int toidx,
 			      struct iconv_env_t* env));
 static VALUE iconv_s_allocate _((VALUE klass));
@@ -386,7 +386,7 @@
 }
 
 static VALUE
-rb_str_derive(VALUE str, const char* ptr, int len)
+rb_str_derive(VALUE str, const char* ptr, long len)
 {
     VALUE ret;
 
@@ -442,7 +442,7 @@
 	length = 0;
     }
     else {
-	int slen;
+	long slen;
 
 	StringValue(str);
 	slen = RSTRING_LEN(str);

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

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