Skip to content

Instantly share code, notes, and snippets.

@timotheecour
Last active July 2, 2021 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timotheecour/962aa3712dc51099bf7cacc3f5e31ce8 to your computer and use it in GitHub Desktop.
Save timotheecour/962aa3712dc51099bf7cacc3f5e31ce8 to your computer and use it in GitHub Desktop.
diff --git a/tmp/z02.c b/tmp/z01.c
index e70e96212..05be04443 100644
--- a/tmp/z02.c
+++ b/tmp/z01.c
@@ -87,7 +87,7 @@ N_LIB_PRIVATE N_NIMCALL(NI, bar_t4950534951_18)(tyProc__EGDHMEKq2nFyDlkU6lrC3A f
if (!(i_2 < n)) goto LA3;
i = i_2;
T4_ = (NI)0;
- T4_ = f.ClE_0? f.ClP_0(i, result, f.ClE_0):((TM__LmgzmgfvvkP3QTLhJjb5RA_2)(f.ClP_0))(i, result);
+ T4_ = f.ClP_0(i, result, f.ClE_0);
result += T4_;
i_2 += ((NI) 1);
} LA3: ;
@@ -102,6 +102,11 @@ N_LIB_PRIVATE N_NIMCALL(NI, fn1_t4950534951_2)(NI a, NI b) {
result += (NI)((NI)(a * result) - (NI)(a * b));
return result;
}
+
+N_LIB_PRIVATE N_NIMCALL(NI, fn1_t4950534951_2_wrap)(NI a, NI b, void* _) {
+ return fn1_t4950534951_2(a, b);
+}
+
static N_INLINE(void, nimSetMem_systemZmemory_7)(void* a, int v, NI size) {
void* T1_;
T1_ = (void*)0;
@@ -173,7 +178,7 @@ N_LIB_PRIVATE N_NIMCALL(void, main_t4950534951_35)(void) {
tyTuple__q4xn9bvzjB0QCTcS8bELuDQ T3_;
t = cpuTime_pureZtimes_3601();
nimZeroMem((void*)(&T1_), sizeof(tyProc__EGDHMEKq2nFyDlkU6lrC3A));
- T1_.ClP_0 = ((TM__LmgzmgfvvkP3QTLhJjb5RA_3) (fn1_t4950534951_2)); T1_.ClE_0 = NIM_NIL;
+ T1_.ClP_0 = fn1_t4950534951_2_wrap; T1_.ClE_0 = NIM_NIL;
c = bar_t4950534951_18(T1_);
t2 = cpuTime_pureZtimes_3601();
nimZeroMem((void*)T2_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment