Coverity: Core module errors fixed
[scilab.git] / scilab / modules / core / src / c / backtrace.c
index 4c10bd8..e0523e7 100644 (file)
@@ -149,7 +149,7 @@ sci_backtrace_t *sci_backtrace_create(void)
                 bt->s_file[i] = infos->dli_fname ? strdup(infos->dli_fname) : strdup(" ");
 
                 // we calculate the relative address in the library
-                snprintf(buffer, 32, "%p", p - infos->dli_fbase);
+                snprintf(buffer, 32, "%p", (void*)(p - infos->dli_fbase));
                 bt->s_addr[i] = strdup(buffer);
             }
         }