mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
coroutines: fix cast in sp_corrector
This commit is contained in:
parent
b4ab5b6349
commit
5a532ead43
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ static void sp_corrector(void** sp_ptr, void* tid) {
|
|||
pthread_attr_getstack(&gattr, (void**)&stack_addr, &stack_size);
|
||||
pthread_attr_destroy(&gattr);
|
||||
#endif
|
||||
char sp = (char)*sp_ptr;
|
||||
char *sp = (char*)*sp_ptr;
|
||||
if(sp <= stack_addr || sp >= stack_addr+stack_size) {
|
||||
*sp_ptr = (void*)stack_addr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue