; * src/json.c (lisp_to_json): Inline an unnecessary variable.
This commit is contained in:
parent
87bd1d914e
commit
205d02c1b5
1 changed files with 1 additions and 2 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue