Fixing incompatible pointer assignment that causes build on RHEL 10 t…#46
Open
jwlodek wants to merge 1 commit intoareaDetector:masterfrom
Open
Fixing incompatible pointer assignment that causes build on RHEL 10 t…#46jwlodek wants to merge 1 commit intoareaDetector:masterfrom
jwlodek wants to merge 1 commit intoareaDetector:masterfrom
Conversation
Member
henriquesimoes
left a comment
There was a problem hiding this comment.
Is this a backport of some kind? If so, it would be helpful to have the upstream patches linked in the commit message.
Here goes some suggestions regarding the patch series organization, so that it becomes easier to review (now and by future developers).
1b6baab to
1727e73
Compare
Member
Author
|
I've added a link to the upstream commit that also makes this change (among other things), and I've squashed the three commits into one.. |
Member
Okay. Thanks. That makes it a bit easier to double check that everything is correct.
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…o fail
w/o this change, on RHEL 10, we get:
The reason this is necessary is as follows:
The implementation of the jpc_{ft,ns}_{synthesize,analyze} functions assume its
first argument is a pointer to jpc_fix_t, as all of them will copy it to a
local variable called startptr of this type. Because on some systems jpc_fix_t
is a long int, we might get a compilation error, as it happens on RHEL 10.
Change the type of the jpc_ft_synthesize argument so there is not an
incompatible pointer assignment. Changing the signature of
analyzeandsynthesizefields in the jpc_qmfb2d_t struct is also needed because theaforementioned functions will be assigned to them. Similarly,
jpc_tsfb_synthesize2() calls
synthesizebut mistakenly declares its forwardedargument as int*.
The same fix was applied as part of this commit: jasper-software/jasper@d743f7e in the upstream repository.
Once merged, could we make a new tag/released version?