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

Usage of @splat #1

Closed
mjoork opened this issue Nov 20, 2022 · 2 comments
Closed

Usage of @splat #1

mjoork opened this issue Nov 20, 2022 · 2 comments

Comments

@mjoork
Copy link

mjoork commented Nov 20, 2022

Right now, if I use any of the functions that use @splat, it causes a compile error:

/home/mpokhil/Source/jok/src/j2d/Vector.zig:97:39: error: expected type 'u32', found 'type'
    const result = self.data / @splat(f32, l);
                                      ^~~
referenced by:
    move: /home/.../src/main.zig:63:30
    update: /home/.../src/main.zig:146:13
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

/home/.../jok/src/j2d/Vector.zig:23:27: error: expected type 'u32', found 'type'
    const result = @splat(f32, val);

Just changing all instance of @splat(f32, ...) in jok.j2d.Vector to @splat(2, ...) works as expected.

Should I create a PR for this?

@Jack-Ji
Copy link
Owner

Jack-Ji commented Nov 20, 2022

Thanks for bug report, I’ll give it a check as soon as possible.

@Jack-Ji
Copy link
Owner

Jack-Ji commented Nov 21, 2022

Fixed 5aedc0e

@Jack-Ji Jack-Ji closed this as completed Nov 21, 2022
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

No branches or pull requests

2 participants