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

Buddy displays hex/octal numbers incorrectly #17

Closed
tlhunter opened this issue Dec 16, 2014 · 2 comments
Closed

Buddy displays hex/octal numbers incorrectly #17

tlhunter opened this issue Dec 16, 2014 · 2 comments

Comments

@tlhunter
Copy link

If you make a file with the following contents:

console.log(0x1A + 0x02);
console.log(071);

The output from Buddy is rather interesting:

$ buddy .

./test.js:1 | console.log(26 + 0x02);
./test.js:1 | console.log(0x1A + 2);
./test.js:2 | console.log(57);

3 magic numbers found across 1 file

Notice how the hex/octal numbers are converted to decimal before being logged.

@danielstjules
Copy link
Owner

Fixed in a288b59 Thanks!

@tlhunter
Copy link
Author

👍

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