mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Use stdint.h limit macros
* libguile/__scm.h: Include <stdint.h>, now that we rely on C99. (SCM_T_UINT8_MAX, SCM_T_INT8_MIN, SCM_T_INT8_MAX, SCM_T_UINT16_MAX) (SCM_T_INT16_MIN, SCM_T_INT16_MAX, SCM_T_UINT32_MAX, SCM_T_INT32_MIN) (SCM_T_INT32_MAX, SCM_T_UINT64_MAX, SCM_T_INT64_MIN, SCM_T_INT64_MAX) (SCM_T_UINTMAX_MAX, SCM_T_INTMAX_MIN, SCM_T_INTMAX_MAX) (SCM_T_UINTPTR_MAX, SCM_T_INTPTR_MIN, SCM_T_INTPTR_MAX): Define in terms of equivalent stdint.h definitions. * libguile/gen-scmconfig.c: * libguile/instructions.c: * libguile/numbers.c: * libguile/random.c: * libguile/tags.h: * test-suite/standalone/test-conversion.c: Adapt to use C99 names.
This commit is contained in:
parent
e605b518ee
commit
2eb8fa1751
7 changed files with 128 additions and 125 deletions
|
@ -278,7 +278,7 @@ scm_c_random64 (scm_t_rstate *state, scm_t_uint64 m)
|
|||
scm_t_uint64 r;
|
||||
scm_t_uint32 mask;
|
||||
|
||||
if (m <= SCM_T_UINT32_MAX)
|
||||
if (m <= UINT32_MAX)
|
||||
return scm_c_random (state, (scm_t_uint32) m);
|
||||
|
||||
mask = scm_i_mask32 (m >> 32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue