summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-04-05 10:45:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-04-05 10:45:44 -0700
commit24c3fa96077a5fec6d8ba65d7c49ff1a731be32f (patch)
treed25702a0e09aa98f16e7f00fc49732ca4a582ba3 /src/coding.c
parent507f26d532aaf9db4622c42eec1f89466fb5c724 (diff)
downloademacs-24c3fa96077a5fec6d8ba65d7c49ff1a731be32f.tar.gz
* src/coding.c (code_convert_string): Fix type mismatches.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 97a6eb949a8..49c1e625d57 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -9524,8 +9524,8 @@ code_convert_string (Lisp_Object string, Lisp_Object coding_system,
return (nocopy
? string
: (encodep
- ? make_unibyte_string (SDATA (string), bytes)
- : make_multibyte_string (SDATA (string), bytes, bytes)));
+ ? make_unibyte_string (SSDATA (string), bytes)
+ : make_multibyte_string (SSDATA (string), bytes, bytes)));
}
else if (BUFFERP (dst_object))
{