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

Update rpmExpandMacros MemoryPointer usage #15

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

agrare
Copy link
Member

@agrare agrare commented Jan 31, 2025

Change to match the examples for a string as an output parameter not just a general object as an output parameter. They way I was used to doing this was for a object not specifically a string.

https://msp-greg.github.io/ffi/file.Examples.html#single-string

Change to match the examples for a string as an output parameter not
just a general object as an output parameter.
val = obuf.get_pointer(0)
val.read_string
val = obuf.read_pointer
val.nil? ? nil : val.read_string
Copy link
Member

@Fryguy Fryguy Jan 31, 2025

Choose a reason for hiding this comment

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

Not important, but

Suggested change
val.nil? ? nil : val.read_string
val&.read_string

@Fryguy Fryguy merged commit 2e367b8 into ManageIQ:master Jan 31, 2025
2 checks passed
@Fryguy Fryguy self-assigned this Jan 31, 2025
@Fryguy Fryguy added the bug label Jan 31, 2025
@agrare agrare deleted the update_rpm_expand_macros branch January 31, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants