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

[WIP] u32: fix for negative offsets #656

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vic063
Copy link
Contributor

@Vic063 Vic063 commented Dec 13, 2019

This fix should resolve the issue #646

@svinota
Copy link
Owner

svinota commented Jan 23, 2020

Sounds reasonable, so I would merge it one day when the [WIP] will be cleared.

else:
(key, offset) = cut_field(key, '+')
use_minus = False

offset = int(offset, 0)
# a little trick: if you provide /00ff+8, that
# really means /ff+9, so we should take it into
Copy link

@reshmasreekumar reshmasreekumar Nov 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Vic063 you will probably have to change the logic of updating offset at line number 185 .i.e.

offset = offset + 1 if not use_minus else offset - 1

@svinota
Copy link
Owner

svinota commented Nov 1, 2021

Thanks, trying.

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

Successfully merging this pull request may close these issues.

3 participants