mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-03 16:20:39 +02:00
* numbers.c (PTRDIFF_MIN): use SCM_CHAR_BIT.
This commit is contained in:
parent
43151146c2
commit
b4fb7de868
1 changed files with 2 additions and 1 deletions
|
@ -4074,7 +4074,8 @@ SCM_DEFINE (scm_inexact_to_exact, "inexact->exact", 1, 0, 0,
|
||||||
#endif
|
#endif
|
||||||
#ifndef PTRDIFF_MIN
|
#ifndef PTRDIFF_MIN
|
||||||
#define PTRDIFF_MIN \
|
#define PTRDIFF_MIN \
|
||||||
((scm_t_ptrdiff) ((scm_t_ptrdiff) 1 << (sizeof (scm_t_ptrdiff) * 8 - 1)))
|
((scm_t_ptrdiff) ((scm_t_ptrdiff) 1 \
|
||||||
|
<< ((sizeof (scm_t_ptrdiff) * SCM_CHAR_BIT) - 1)))
|
||||||
#endif
|
#endif
|
||||||
#ifndef PTRDIFF_MAX
|
#ifndef PTRDIFF_MAX
|
||||||
#define PTRDIFF_MAX (~ PTRDIFF_MIN)
|
#define PTRDIFF_MAX (~ PTRDIFF_MIN)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue