Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey committed May 23, 2024
1 parent 110a782 commit 24343a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/SilkTouch/ArrayParameterTransformerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void DeleteTests(int cnt, [NativeTypeName("const uint*")] uint* te
"""
public static void DeleteTest([NativeTypeName("const uint*")] uint testi)
{
InnerDeleteTest(1, &testi);
InnerDeleteTest(1, (uint*)&testi);
}
"""
),
Expand All @@ -42,7 +42,7 @@ public static void CreateTests(int cnt, [NativeTypeName("uint*")] uint* testmo)
public static uint CreateTest()
{
uint testmo = default;
InnerCreateTest(1, &testmo);
InnerCreateTest(1, (uint*)&testmo);
return testmo;
}
"""
Expand All @@ -57,7 +57,7 @@ public static void DeleteTests([NativeTypeName("const uint*")] uint* test1i)
"""
public static void DeleteTest([NativeTypeName("const uint*")] uint test1i)
{
InnerDeleteTest(&test1i);
InnerDeleteTest((uint*)&test1i);
}
"""
),
Expand All @@ -72,7 +72,7 @@ public static void CreateTests([NativeTypeName("uint*")] uint* test1mo)
public static uint CreateTest()
{
uint test1mo = default;
InnerCreateTest(&test1mo);
InnerCreateTest((uint*)&test1mo);
return test1mo;
}
"""
Expand All @@ -88,7 +88,7 @@ public static void CreateTests(int cnt, [NativeTypeName("uint*")] uint* testm)
public static uint CreateTest()
{
uint testm = default;
InnerCreateTest(1, &testm);
InnerCreateTest(1, (uint*)&testm);
return testm;
}
"""
Expand All @@ -103,7 +103,7 @@ public static void DeleteTests(int cnt, [NativeTypeName("const uint*")] uint* te
"""
public static void DeleteTest([NativeTypeName("const uint*")] uint test)
{
InnerDeleteTest(1, &test);
InnerDeleteTest(1, (uint*)&test);
}
"""
),
Expand All @@ -118,7 +118,7 @@ public static void CreateTests(int cnt, [NativeTypeName("uint*")] uint* tst)
public static uint CreateTest()
{
uint tst = default;
InnerCreateTest(1, &tst);
InnerCreateTest(1, (uint*)&tst);
return tst;
}
"""
Expand All @@ -133,7 +133,7 @@ public static void DeleteTests(int cnt, [NativeTypeName("const uint*")] uint* ts
"""
public static void DeleteTest([NativeTypeName("const uint*")] uint tst)
{
InnerDeleteTest(1, &tst);
InnerDeleteTest(1, (uint*)&tst);
}
"""
),
Expand Down

0 comments on commit 24343a8

Please sign in to comment.