Explorar o código

fix build error

unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
82ae97e248
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libcpu/sim/win32/cpu_port.c

+ 1 - 1
libcpu/sim/win32/cpu_port.c

@@ -286,7 +286,7 @@ void rt_hw_context_switch(rt_uint32_t from,
     TriggerSimulateInterrupt(CPU_INTERRUPT_YIELD);
     TriggerSimulateInterrupt(CPU_INTERRUPT_YIELD);
 
 
     // make sure the event is not already signaled
     // make sure the event is not already signaled
-    WinThread = (win_thread_t *)rt_interrupt_from_thread;
+    win_thread_t *WinThread = (win_thread_t *)rt_interrupt_from_thread;
     ResetEvent(WinThread->YieldEvent);
     ResetEvent(WinThread->YieldEvent);
 
 
     /*
     /*