[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 205d02c: ; * src/json.c (lisp_to_json): Inline an u
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master 205d02c: ; * src/json.c (lisp_to_json): Inline an unnecessary variable. |
Date: |
Mon, 18 Dec 2017 18:13:28 -0500 (EST) |
branch: master
commit 205d02c1b54fa8e18f610cd5deb61a1a3b9bbc01
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
; * src/json.c (lisp_to_json): Inline an unnecessary variable.
---
src/json.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/json.c b/src/json.c
index 5849705..82f670a 100644
--- a/src/json.c
+++ b/src/json.c
@@ -376,8 +376,7 @@ lisp_to_json (Lisp_Object lisp)
else if (STRINGP (lisp))
{
Lisp_Object encoded = json_encode (lisp);
- ptrdiff_t size = SBYTES (encoded);
- return json_check (json_stringn (SSDATA (encoded), size));
+ return json_check (json_stringn (SSDATA (encoded), SBYTES (encoded)));
}
/* LISP now must be a vector or hashtable. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 205d02c: ; * src/json.c (lisp_to_json): Inline an unnecessary variable.,
Philipp Stephani <=