Skip to content

Conversation

ser-0xff
Copy link
Contributor

Fix memory binding.

Motivation:

According to the documentation the 'capacity' argument represent the amount of memory counted as instances of T. Number of bytes allocated for the memory block does not always the same value as a number of instances.

Modifications:

bindMemory(:, capacity:) called with capacity equal to number of items in the vector instead of size of vector in bytes.

Result:

Proper memory binding.

@swift-server-bot
Copy link

Can one of the admins verify this patch?

11 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Feb 27, 2023
@Lukasa
Copy link
Contributor

Lukasa commented Feb 27, 2023

@swift-server-bot test this please

@Lukasa
Copy link
Contributor

Lukasa commented Feb 27, 2023

This LGTM but needs to be rebased onto main.

@Lukasa
Copy link
Contributor

Lukasa commented Feb 28, 2023

This still needs to be rebased onto main, and sadly I can't do it as you haven't made the branch editable by admins.

@ser-0xff
Copy link
Contributor Author

ser-0xff commented Feb 28, 2023

I synced the branch with swift-nio/main and asked to give you rights to resync it.

@Lukasa
Copy link
Contributor

Lukasa commented Mar 1, 2023

@swift-server-bot test this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants