plug-ins: fix another cast warning.
Fix again these warnings: > cast from pointer to integer of different size
This commit is contained in:
@ -44,6 +44,7 @@
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
#include <ctype.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../script-fu-intl.h"
|
||||
@ -629,8 +630,8 @@ static int alloc_cellseg(scheme *sc, int n) {
|
||||
i = ++sc->last_cell_seg ;
|
||||
sc->alloc_seg[i] = cp;
|
||||
/* adjust in TYPE_BITS-bit boundary */
|
||||
if(((unsigned long)cp)%adj!=0) {
|
||||
cp=(char*)(adj*((unsigned long)cp/adj+1));
|
||||
if(((uintptr_t)cp)%adj!=0) {
|
||||
cp=(char*)(adj*((uintptr_t)cp/adj+1));
|
||||
}
|
||||
/* insert new segment in address order */
|
||||
newp=(pointer)cp;
|
||||
|
Reference in New Issue
Block a user