aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorKarl Heuer1994-11-16 00:42:11 +0000
committerKarl Heuer1994-11-16 00:42:11 +0000
commitc80bd143cf695be5272821ef623527abcd88ea5d (patch)
tree25d53fe2d227a837a2702db74fced8523051413b /src/data.c
parentc9dad5edec76c9bd818cfd2c6d9d3a71de9226c7 (diff)
downloademacs-c80bd143cf695be5272821ef623527abcd88ea5d.tar.gz
emacs-c80bd143cf695be5272821ef623527abcd88ea5d.zip
(syms_of_data): Set Qwholenump as function, not variable.
(Fnatnump): Use NATNUMP macro.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index f444dad403a..0350ecc3156 100644
--- a/src/data.c
+++ b/src/data.c
@@ -329,7 +329,7 @@ DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0,
329 (obj) 329 (obj)
330 Lisp_Object obj; 330 Lisp_Object obj;
331{ 331{
332 if (INTEGERP (obj) && XINT (obj) >= 0) 332 if (NATNUMP (obj))
333 return Qt; 333 return Qt;
334 return Qnil; 334 return Qnil;
335} 335}
@@ -2345,7 +2345,7 @@ syms_of_data ()
2345 defsubr (&Ssub1); 2345 defsubr (&Ssub1);
2346 defsubr (&Slognot); 2346 defsubr (&Slognot);
2347 2347
2348 Fset (Qwholenump, Qnatnump); 2348 XSYMBOL (Qwholenump)->function = XSYMBOL (Qnatnump)->function;
2349} 2349}
2350 2350
2351SIGTYPE 2351SIGTYPE