diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-10-08 15:41:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-10-08 23:29:49 +0900 |
commit | 9a90cd228466ec088d6f0da8d1aa065f03daa7c8 () | |
tree | b4fc458cdfbdad102551c421e7469e560e2b9030 /vm_trace.c | |
parent | d8b64eac55cf6c4b228b0969cd3abb0a6274de16 (diff) |
Cast via `uintptr_t` function pointer between object pointer
- ISO C forbids conversion of function pointer to object pointer type - ISO C forbids conversion of object pointer to function pointer type
-rw-r--r-- | vm_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1760,7 +1760,7 @@ rb_postponed_job_preregister(unsigned int flags, rb_postponed_job_func_t func, v rb_postponed_job_queues_t *pjq = GET_VM()->postponed_job_queue; for (unsigned int i = 0; i < PJOB_TABLE_SIZE; i++) { /* Try and set this slot to equal `func` */ - rb_postponed_job_func_t existing_func = (rb_postponed_job_func_t)RUBY_ATOMIC_PTR_CAS(pjq->table[i], NULL, (void *)func); if (existing_func == NULL || existing_func == func) { /* Either this slot was NULL, and we set it to func, or, this slot was already equal to func. * In either case, clobber the data with our data. Note that concurrent calls to |