summaryrefslogtreecommitdiff
path: root/libguile/strings.h
diff options
context:
space:
mode:
authorRob Browning <rlb@defaultvalue.org>2001-09-21 17:56:17 +0000
committerRob Browning <rlb@defaultvalue.org>2001-09-21 17:56:17 +0000
commit27070f900d545d7139673fc5dc54c8ff77bc7057 (patch)
tree9e735d9d0b8ab1c6074fc463e053e23e7b93291c /libguile/strings.h
parentcc0ce1e7644d59805ca21fdc976883938514774c (diff)
downloadguile-27070f900d545d7139673fc5dc54c8ff77bc7057.tar.gz
* strings.h (SCM_SET_STRING_LENGTH): coerce "l" to a long.
Otherwise it fails on the alpha. However, we might rather choose this size conditionally.
Diffstat (limited to 'libguile/strings.h')
-rw-r--r--libguile/strings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/strings.h b/libguile/strings.h
index 319568ab8..271497a5d 100644
--- a/libguile/strings.h
+++ b/libguile/strings.h
@@ -56,7 +56,7 @@
#define SCM_SET_STRING_CHARS(s, c) (SCM_SET_CELL_WORD_1 ((s), (c)))
#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_SET_STRING_LENGTH(s, l) (SCM_SET_CELL_WORD_0 ((s), (((long) (l)) << 8) + scm_tc7_string))