* [patch] int -> size_t build correction
@ 2004-08-25 2:05 Richard Todd
0 siblings, 0 replies; only message in thread
From: Richard Todd @ 2004-08-25 2:05 UTC (permalink / raw)
Cc: Richard Todd
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
CVS guile doesn't build cleanly for me right now, because of some
'int's in srfi-13.c where size_t's were expected. A patch is attached.
I glanced through the code and didn't see anywhere where it would
depend on those variables being signed, and 'make check' passes for me,
so I think it's good.
thanks,
Richard
[-- Attachment #2: size_t.patch --]
[-- Type: application/octet-stream, Size: 1360 bytes --]
Index: guile-core/libguile/srfi-13.c
===================================================================
RCS file: /cvsroot/guile/guile/guile-core/libguile/srfi-13.c,v
retrieving revision 1.1
diff -u -r1.1 srfi-13.c
--- guile-core/libguile/srfi-13.c 24 Aug 2004 22:11:35 -0000 1.1
+++ guile-core/libguile/srfi-13.c 25 Aug 2004 01:52:18 -0000
@@ -92,7 +92,7 @@
#define FUNC_NAME s_scm_string_any
{
const char *cstr;
- int cstart, cend;
+ size_t cstart, cend;
SCM res;
MY_VALIDATE_SUBSTRING_SPEC_COPY (2, s, cstr,
@@ -151,7 +151,7 @@
#define FUNC_NAME s_scm_string_every
{
const char *cstr;
- int cstart, cend;
+ size_t cstart, cend;
SCM res;
MY_VALIDATE_SUBSTRING_SPEC_COPY (2, s, cstr,
@@ -235,7 +235,7 @@
#define FUNC_NAME s_scm_substring_to_list
{
const char *cstr;
- int cstart, cend;
+ size_t cstart, cend;
SCM result = SCM_EOL;
MY_VALIDATE_SUBSTRING_SPEC_COPY (1, str, cstr,
@@ -763,7 +763,7 @@
#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,
@@ -3001,7 +3001,7 @@
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,
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-25 2:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-25 2:05 [patch] int -> size_t build correction Richard Todd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).