* src/editfns.c (Fchar_after): Small optimization.

This commit is contained in:
Philipp Stephani 2017-09-30 20:40:02 +02:00
parent bb47c72de3
commit 66d37175ec

View file

@ -1256,10 +1256,10 @@ If POS is out of range, the value is nil. */)
if (NILP (pos))
{
pos_byte = PT_BYTE;
XSETFASTINT (pos, PT);
if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)
return Qnil;
}
if (MARKERP (pos))
else if (MARKERP (pos))
{
pos_byte = marker_byte_position (pos);
if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)