[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 1da7bc7: Fix off-by-one error
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master 1da7bc7: Fix off-by-one error |
Date: |
Mon, 12 Jun 2017 17:36:46 -0400 (EDT) |
branch: master
commit 1da7bc7e465a5462d0e20b040ba51bc45fb9f65a
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
Fix off-by-one error
* test/data/emacs-module/mod-test.c (emacs_module_init): Fix
off-by-one error.
---
test/data/emacs-module/mod-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/data/emacs-module/mod-test.c
b/test/data/emacs-module/mod-test.c
index f378db0..5e857c0 100644
--- a/test/data/emacs-module/mod-test.c
+++ b/test/data/emacs-module/mod-test.c
@@ -269,7 +269,7 @@ emacs_module_init (struct emacs_runtime *ert)
emacs_env *env = ert->get_environment (ert);
- if (env->size <= sizeof *env)
+ if (env->size < sizeof *env)
return 2;
#define DEFUN(lsym, csym, amin, amax, doc, data) \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 1da7bc7: Fix off-by-one error,
Philipp Stephani <=