(scm_string_trim_right, scm_string_xcopy_x): Correctly use size_t for
authorMarius Vollmer <mvo@zagadka.de>
Tue, 7 Sep 2004 13:48:49 +0000 (13:48 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Tue, 7 Sep 2004 13:48:49 +0000 (13:48 +0000)
some locals instead of int.

libguile/srfi-13.c

index 37f378a..eb495af 100644 (file)
@@ -764,7 +764,7 @@ SCM_DEFINE (scm_string_trim_right, "string-trim-right", 1, 3, 0,
 #define FUNC_NAME s_scm_string_trim_right
 {
   const char *cstr;
-  int cstart, cend;
+  size_t cstart, cend;
 
   MY_VALIDATE_SUBSTRING_SPEC_COPY (1, s, cstr,
                                   3, start, cstart,
@@ -3060,7 +3060,7 @@ SCM_DEFINE (scm_string_xcopy_x, "string-xcopy!", 4, 3, 0,
   const char *cs;
   size_t ctstart, csfrom, csto, cstart, cend;
   SCM dummy = SCM_UNDEFINED;
-  int cdummy;
+  size_t cdummy;
 
   MY_VALIDATE_SUBSTRING_SPEC (1, target,
                              2, tstart, ctstart,