projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3813b2
)
; * src/emacs-module.c (funcall_module): Add another FIXME
author
Philipp Stephani
<phst@google.com>
Sat, 17 Jun 2017 15:10:41 +0000
(17:10 +0200)
committer
Philipp Stephani
<phst@google.com>
Sat, 17 Jun 2017 15:10:41 +0000
(17:10 +0200)
src/emacs-module.c
patch
|
blob
|
history
diff --git
a/src/emacs-module.c
b/src/emacs-module.c
index 5c413ee0556d1833902e80a43f19bccad21cb044..2693a4529d60ee65b04d4f98d3950ed2214af4a3 100644
(file)
--- a/
src/emacs-module.c
+++ b/
src/emacs-module.c
@@
-768,6
+768,9
@@
funcall_module (Lisp_Object function, ptrdiff_t nargs, Lisp_Object *arglist)
USE_SAFE_ALLOCA;
ATTRIBUTE_MAY_ALIAS emacs_value *args;
if (plain_values && ! module_assertions)
+ /* FIXME: The cast below is incorrect because the argument array
+ is not declared as const, so module functions can modify it.
+ Either declare it as const, or remove this branch. */
args = (emacs_value *) arglist;
else
{