[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 3322360: Port recent module changes to pickier co
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] emacs-25 3322360: Port recent module changes to pickier compilers |
Date: |
Mon, 23 Nov 2015 17:53:39 +0000 |
branch: emacs-25
commit 33223605144c61709a6d3c2a3c96f0b7451512c6
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Port recent module changes to pickier compilers
* src/emacs-module.c (module_make_function)
(module_make_string): Add casts to fix pointer signedness issues.
---
src/emacs-module.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/emacs-module.c b/src/emacs-module.c
index f49802c..6436339 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -394,7 +394,8 @@ module_make_function (emacs_env *env, ptrdiff_t min_arity,
ptrdiff_t max_arity,
{
ptrdiff_t nbytes = strlen (documentation);
ptrdiff_t nchars, ignored_nbytes;
- parse_str_as_multibyte (documentation, nbytes, &nchars, &ignored_nbytes);
+ parse_str_as_multibyte ((unsigned char const *) documentation, nbytes,
+ &nchars, &ignored_nbytes);
doc = make_multibyte_string (documentation, nchars, nbytes);
}
@@ -572,7 +573,8 @@ module_make_string (emacs_env *env, const char *str,
ptrdiff_t length)
return NULL;
}
ptrdiff_t nchars, ignored_nbytes;
- parse_str_as_multibyte (str, length, &nchars, &ignored_nbytes);
+ parse_str_as_multibyte ((unsigned char const *) str, length,
+ &nchars, &ignored_nbytes);
return lisp_to_value (env, make_multibyte_string (str, nchars, length));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 3322360: Port recent module changes to pickier compilers,
Paul Eggert <=