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

2scomp->unsigned function generates incorrect output when given "0" to convert #29

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run (2scomp->unsigned 0 #) in file wav.lisp where # is any number.

What is the expected output? What do you see instead?
Expected output is 0 since there is nothing to change between 2s Complement
and unsigned values of 0.

EDIT: This error has been corrected by including 0 with the positive
numbers (where no changes are made), rather than testing if the number is
positive (where 0 is not included).


Original issue reported on code.google.com by jcor...@gmail.com on 21 Apr 2008 at 11:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant