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 ByteArray.hx #1475

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Update ByteArray.hx #1475

merged 1 commit into from
Oct 10, 2023

Conversation

Onek8
Copy link
Contributor

@Onek8 Onek8 commented Oct 10, 2023

Fix hashlink warning for cast to Int pointed out by Zeta

On HL ByteArray.getUInt32 returns a hl.I64 for some reason:

public inline function getUint32(byteOffset: Int): hl.I64 {

But then it's turned into an Int here:
public inline function get(k: Int): Int {
, which leads to that new warning.

Fix hashlink warning for cast to Int pointed out by Zeta

On HL ByteArray.getUInt32 returns a hl.I64 for some reason: <https://github.com/Kode/Kha/blob/9585c2ba99683734dc2421ac31252c2a7e7e7153/Backends/Kinc-HL/kha/arrays/ByteArray.hx#L73>
But then it's turned into an Int here: <https://github.com/Kode/Kha/blob/9585c2ba99683734dc2421ac31252c2a7e7e7153/Sources/kha/arrays/Uint32Array.hx#L16>, which leads to that new warning.
@RobDangerous
Copy link
Member

But this is wrong, this should be fixed in HL.

@RobDangerous
Copy link
Member

Aaah, no, I misinterpreted "HL's ByteArray". Allrighty then.

@RobDangerous RobDangerous merged commit 2414a9e into Kode:main Oct 10, 2023
23 checks passed
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.

2 participants