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

Large int/log values are truncated in locals display #8

Open
GoogleCodeExporter opened this issue Apr 30, 2015 · 0 comments
Open

Large int/log values are truncated in locals display #8

GoogleCodeExporter opened this issue Apr 30, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.  Create a program that creates a long or int variable whose value cannot
be stored in 24 or 28 bits.  (Actual value depends on how emacs was built)
2.  Break in jdibug where the variable is visible.

What is the expected output? What do you see instead?
The high order bits are dropped.  Integer.MIN_VALUE displays as -1 and
Integer.MAX_VALUE displays as 0.

Please use labels and text to provide additional information.

The current display converts the bytes to a number using emacs integers,
which only have 24-28 bits.  (I think the exact value depends on how emacs
was built.)  To fix this, we need to write something that builds up the
string from the bytes without going through an intermediate number.

Original issue reported on code.google.com by udalrich.schermer on 27 Mar 2010 at 9:23

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