plug-ins: fix another cast warning.

Fix again these warnings:
> cast from pointer to integer of different size
This commit is contained in:
Jehan
2019-09-23 10:50:33 +02:00
parent 6bd5deea89
commit 2c6e21b1e7

View File

@ -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;