aboutsummaryrefslogtreecommitdiff
path: root/core/thread/thread.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-11-30 19:46:41 +0000
committergingerBill <bill@gingerbill.org>2020-11-30 19:46:41 +0000
commitef417017f0e6ae061844cc4e0f5e050c6a7a4fc4 (patch)
tree00e93beab055a9f4b542b48083b78c47e8c31b84 /core/thread/thread.odin
parent7c1c9d22b48bd84f0d0802c4c6a1c7577bd201e4 (diff)
Fix typo
Diffstat (limited to 'core/thread/thread.odin')
-rw-r--r--core/thread/thread.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/thread/thread.odin b/core/thread/thread.odin
index ffa47faa7..51fb116e3 100644
--- a/core/thread/thread.odin
+++ b/core/thread/thread.odin
@@ -104,7 +104,7 @@ run_with_poly_data3 :: proc(arg1: $T1, arg2: $T2, arg3: $T3, fn: proc(arg1: T1,
assert(t.user_index >= 3);
arg1 := (^T1)(&t.user_args[0])^;
arg2 := (^T2)(&t.user_args[1])^;
- arg3 := (^T2)(&t.user_args[2])^;
+ arg3 := (^T3)(&t.user_args[2])^;
fn(arg1, arg2, arg3);
destroy(t);
}
@@ -127,8 +127,8 @@ run_with_poly_data4 :: proc(arg1: $T1, arg2: $T2, arg3: $T3, arg4: $T4, fn: proc
assert(t.user_index >= 4);
arg1 := (^T1)(&t.user_args[0])^;
arg2 := (^T2)(&t.user_args[1])^;
- arg3 := (^T2)(&t.user_args[2])^;
- arg4 := (^T2)(&t.user_args[3])^;
+ arg3 := (^T3)(&t.user_args[2])^;
+ arg4 := (^T4)(&t.user_args[3])^;
fn(arg1, arg2, arg3, arg4);
destroy(t);
}