[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile/guile-core/libguile strings.h
From: |
Marius Vollmer |
Subject: |
guile/guile-core/libguile strings.h |
Date: |
Thu, 14 Jun 2001 11:26:17 -0700 |
CVSROOT: /cvs
Module name: guile
Changes by: Marius Vollmer <address@hidden> 01/06/14 11:26:17
Modified files:
guile-core/libguile: strings.h
Log message:
* unif.h (SCM_ARRAY_NDIM): Shift then cast so that the no sign
extension takes place.
* strings.h (SCM_STRING_LENGTH): Likewise.
(SCM_STRING_MAX_LENGTH): Use unsigned numbers.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/libguile/strings.h.diff?cvsroot=OldCVS&tr1=1.30&tr2=1.31&r1=text&r2=text
Patches:
Index: guile/guile-core/libguile/strings.h
diff -u guile/guile-core/libguile/strings.h:1.30
guile/guile-core/libguile/strings.h:1.31
--- guile/guile-core/libguile/strings.h:1.30 Wed May 23 17:50:49 2001
+++ guile/guile-core/libguile/strings.h Thu Jun 14 11:26:17 2001
@@ -57,8 +57,8 @@
#define SCM_STRING_CHARS(x) ((char *) (SCM_CELL_WORD_1 (x)))
#endif
#define SCM_SET_STRING_CHARS(s, c) (SCM_SET_CELL_WORD_1 ((s), (c)))
-#define SCM_STRING_MAX_LENGTH ((1L << 24) - 1)
-#define SCM_STRING_LENGTH(x) (((size_t) SCM_CELL_WORD_0 (x)) >> 8)
+#define SCM_STRING_MAX_LENGTH ((1UL << 24) - 1UL)
+#define SCM_STRING_LENGTH(x) ((size_t) (SCM_CELL_WORD_0 (x) >> 8))
#define SCM_SET_STRING_LENGTH(s, l) (SCM_SET_CELL_WORD_0 ((s), ((l) << 8) +
scm_tc7_string))
#define SCM_STRING_COERCE_0TERMINATION_X(x) \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- guile/guile-core/libguile strings.h,
Marius Vollmer <=