summaryrefslogtreecommitdiff
path: root/src/character.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-06-12 20:25:47 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-06-12 20:25:47 +0000
commit2afc21f5f6d8963301913c5aed515e567b8e3986 (patch)
tree887ca764f829fd7bf1bd86db8b498551c9f9cf4b /src/character.c
parent667adde1607cd29244213d76624c085083245796 (diff)
downloademacs-2afc21f5f6d8963301913c5aed515e567b8e3986.tar.gz
* character.h (CHAR_TO_BYTE_SAFE): New macro.
* character.c (Fmultibyte_char_to_unibyte): Obey the docstring. * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro. (WEAK_ALIAS): Simplify. * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap when searching a unibyte buffer.
Diffstat (limited to 'src/character.c')
-rw-r--r--src/character.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/character.c b/src/character.c
index 7f09ecd4857..5e2a3590563 100644
--- a/src/character.c
+++ b/src/character.c
@@ -359,7 +359,7 @@ If the multibyte character does not represent a byte, return -1. */)
return ch;
else
{
- int cu = CHAR_TO_BYTE8 (cm);
+ int cu = CHAR_TO_BYTE_SAFE (cm);
return make_number (cu);
}
}