Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lyskom-elisp-client
lyskom-elisp-client
Commits
0e237fbd
Commit
0e237fbd
authored
Jun 20, 1999
by
David Byers
Browse files
Clip maxint to 2^31-1
parent
93e66d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utilities.el
View file @
0e237fbd
...
...
@@ -139,10 +139,13 @@
(
defun
lyskom-maxint
()
(
let
((
n
1
)
(
l
nil
))
(
while
(
>
n
0
)
(
let
((
n
1
)
(
l
nil
)
(
i
31
))
(
while
(
and
(
>
n
0
)
(
>
i
0
))
(
setq
l
(
cons
n
l
))
(
setq
n
(
*
2
n
)))
(
setq
n
(
*
2
n
))
(
setq
i
(
1-
i
)))
(
apply
'+
l
)))
;; Set lyskom-maxint correctly
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment