aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc.c b/src/doc.c
index 8d84c8e7c40..a22034ae9d2 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -166,7 +166,7 @@ string is passed through `substitute-command-keys'.")
166 tem = XVECTOR (fun)->contents[COMPILED_DOC_STRING]; 166 tem = XVECTOR (fun)->contents[COMPILED_DOC_STRING];
167 if (STRINGP (tem)) 167 if (STRINGP (tem))
168 doc = tem; 168 doc = tem;
169 else if (INTEGERP (tem) && XINT (tem) >= 0) 169 else if (NATNUMP (tem))
170 doc = get_doc_string (XFASTINT (tem)); 170 doc = get_doc_string (XFASTINT (tem));
171 else 171 else
172 return Qnil; 172 return Qnil;
@@ -189,7 +189,7 @@ subcommands.)");
189 tem = Fcar (Fcdr (Fcdr (fun))); 189 tem = Fcar (Fcdr (Fcdr (fun)));
190 if (STRINGP (tem)) 190 if (STRINGP (tem))
191 doc = tem; 191 doc = tem;
192 else if (INTEGERP (tem) && XINT (tem) >= 0) 192 else if (NATNUMP (tem))
193 doc = get_doc_string (XFASTINT (tem)); 193 doc = get_doc_string (XFASTINT (tem));
194 else 194 else
195 return Qnil; 195 return Qnil;