Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library is unable to parse float if SAFETY restricted to 2 or 3 on SBCL #66

Open
svetlyak40wt opened this issue Mar 6, 2021 · 2 comments

Comments

@svetlyak40wt
Copy link
Contributor

svetlyak40wt commented Mar 6, 2021

Here is how to reproduce the problem:

CL-USER> (asdf:load-system :jonathan)

CL-USER> (jonathan:parse "{\"foo\": 123.56}")
(:|foo| 123.56)

CL-USER> (sb-ext:restrict-compiler-policy 'safety 3)

CL-USER> (asdf:load-system :jonathan :force t)

CL-USER> (jonathan:parse "{\"foo\": 123.56}")
; Debugger entered on #<TYPE-ERROR expected-type: FIXNUM datum: 123.56>

The problem is in this line: https://github.com/Rudolph-Miller/jonathan/blame/fb83ff094d330b2208b0febc8b25983c6050e378/src/decode.lisp#L295

@svetlyak40wt
Copy link
Contributor Author

svetlyak40wt commented Oct 17, 2021

This problem still exists the problem is in the (the fixnum num) form at line:

https://github.com/Rudolph-Miller/jonathan/blob/fb83ff094d330b2208b0febc8b25983c6050e378/src/decode.lisp#L295

@fade
Copy link

fade commented Nov 30, 2021

this just bit me pretty deep in my call graph.

vindarel added a commit to CodyReichert/awesome-cl that referenced this issue Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants