-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
usize/isize vector comparison within function #4334
Copy link
Copy link
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
Milestone
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
Type
Fields
Give feedbackNo fields configured for issues without a type.
on 30 Jan 2020 with zig version 0.5.0+7ebc624a1 pulled and built from master last night.
In the following code, two
@Vector(4, usize)are compared with == in the test scope with no problem. However if the same comparison is made within a struct fn, the == comparison results in:error: expected type '@Vector(4, u64)', found '@Vector(4, usize)'It appears that the lhs
@Vector(4, usize)is being converted to@Vector(4, u64)when it gets passed into a function. This error is not observed with u64 vector type.