summaryrefslogtreecommitdiff
path: root/src/emacs-module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs-module.c')
-rw-r--r--src/emacs-module.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index 0974a199e5e..0d3cce0276b 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -955,11 +955,9 @@ single memcpy to convert the magnitude. This way we largely avoid the
import/export overhead on most platforms.
*/
-enum
-{
- /* Documented maximum count of magnitude elements. */
- module_bignum_count_max = min (SIZE_MAX, PTRDIFF_MAX) / sizeof (emacs_limb_t)
-};
+/* Documented maximum count of magnitude elements. */
+#define module_bignum_count_max \
+ ((ptrdiff_t) min (SIZE_MAX, PTRDIFF_MAX) / sizeof (emacs_limb_t))
/* Verify that emacs_limb_t indeed has unique object
representations. */