diff options
author | Marius Vollmer <mvo@zagadka.de> | 2001-06-14 18:26:27 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2001-06-14 18:26:27 +0000 |
commit | 2635d5efb9553cbc6a2d0a80e554936da5dc6a42 (patch) | |
tree | cdb398f8a2c2bf01045e02da25f0583bb986ca74 /libguile/unif.h | |
parent | 3d968b4e8b82c4c080ff57689a3a4e9742583fcf (diff) | |
download | guile-2635d5efb9553cbc6a2d0a80e554936da5dc6a42.tar.gz |
* 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.
Diffstat (limited to 'libguile/unif.h')
-rw-r--r-- | libguile/unif.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/unif.h b/libguile/unif.h index 867c04427..131aa12b1 100644 --- a/libguile/unif.h +++ b/libguile/unif.h @@ -88,7 +88,7 @@ extern scm_bits_t scm_tc16_array; #endif #define SCM_ARRAYP(a) SCM_TYP16_PREDICATE (scm_tc16_array, a) -#define SCM_ARRAY_NDIM(x) ((size_t) (SCM_CELL_WORD_0 (x)) >> 17) +#define SCM_ARRAY_NDIM(x) ((size_t) (SCM_CELL_WORD_0 (x) >> 17)) #define SCM_ARRAY_CONTP(x) (SCM_CELL_WORD_0 (x) & SCM_ARRAY_FLAG_CONTIGUOUS) #define SCM_SET_ARRAY_CONTIGUOUS_FLAG(x) \ (SCM_SET_CELL_WORD_0 ((x), SCM_CELL_WORD_0 (x) | SCM_ARRAY_FLAG_CONTIGUOUS)) |