/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/fixnum.c,v 9.32 1990/07/19 19:11:32 jinx Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/fixnum.c,v 9.33 1991/02/16 07:54:26 jinx Exp $
Copyright (c) 1987, 1988, 1989, 1990 Massachusetts Institute of Technology
error_wrong_type_arg (n);
return (FIXNUM_TO_LONG (argument));
}
+
+static long
+arg_unsigned_fixnum (n)
+ int n;
+{
+ fast SCHEME_OBJECT argument = (ARG_REF (n));
+ if (! (FIXNUM_P (argument)))
+ error_wrong_type_arg (n);
+ return (UNSIGNED_FIXNUM_TO_LONG (argument));
+}
\f
/* Predicates */
\
PRIMITIVE_HEADER (2); \
\
- x = (arg_fixnum (1)); \
- y = (arg_fixnum (2)); \
+ x = (arg_unsigned_fixnum (1)); \
+ y = (arg_unsigned_fixnum (2)); \
\
z = (x operation y); \
return (LONG_TO_FIXNUM (z)); \
PRIMITIVE_HEADER (1);
- x = (arg_fixnum (1));
+ x = (arg_unsigned_fixnum (1));
z = (~ (x));
return (LONG_TO_FIXNUM (z));
PRIMITIVE_HEADER (2);
- x = (arg_fixnum (1));
+ x = (arg_unsigned_fixnum (1));
y = (arg_fixnum (2));
if (y < 0)
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 11.61 1991/01/24 11:26:20 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 11.62 1991/02/16 07:55:09 jinx Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
#define VERSION 11
#endif
#ifndef SUBVERSION
-#define SUBVERSION 61
+#define SUBVERSION 62
#endif
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 11.61 1991/01/24 11:26:20 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 11.62 1991/02/16 07:55:09 jinx Exp $
Copyright (c) 1988-91 Massachusetts Institute of Technology
#define VERSION 11
#endif
#ifndef SUBVERSION
-#define SUBVERSION 61
+#define SUBVERSION 62
#endif