ecore: fix build with setjmp.
authorCedric BAIL <cedric.bail@samsung.com>
Mon, 4 Mar 2013 01:03:59 +0000 (10:03 +0900)
committerCedric BAIL <cedric.bail@samsung.com>
Mon, 4 Mar 2013 01:03:59 +0000 (10:03 +0900)
src/lib/ecore/ecore_coroutine.c

index 676141f3aca6001f3977b35efcd8d2105257b5cf..5afd20e11265d4615c11495513ad266d2d3bcbfc 100644 (file)
@@ -117,8 +117,8 @@ _ecore_coroutine_setjmp(Ecore_Coroutine *coro)
    /* The idea of this trick come from libcoroutine */
    /* __jmpbuf[6] == stack pointer */
    /* __jmpbuf[7] == program counter */
-   self->env[0].__jmpbuf[6] = ((uintptr_t)(&coro->stack));
-   self->env[0].__jmpbuf[7] = ((uintptr_t)_ecore_coroutine_entry_point);
+   coro->context->env[0].__jmpbuf[6] = ((uintptr_t)(&coro->stack));
+   coro->context->env[0].__jmpbuf[7] = ((uintptr_t)_ecore_coroutine_entry_point);
 }
 # endif
 #endif