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 <limits.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../script-fu-intl.h"
|
#include "../script-fu-intl.h"
|
||||||
@ -629,8 +630,8 @@ static int alloc_cellseg(scheme *sc, int n) {
|
|||||||
i = ++sc->last_cell_seg ;
|
i = ++sc->last_cell_seg ;
|
||||||
sc->alloc_seg[i] = cp;
|
sc->alloc_seg[i] = cp;
|
||||||
/* adjust in TYPE_BITS-bit boundary */
|
/* adjust in TYPE_BITS-bit boundary */
|
||||||
if(((unsigned long)cp)%adj!=0) {
|
if(((uintptr_t)cp)%adj!=0) {
|
||||||
cp=(char*)(adj*((unsigned long)cp/adj+1));
|
cp=(char*)(adj*((uintptr_t)cp/adj+1));
|
||||||
}
|
}
|
||||||
/* insert new segment in address order */
|
/* insert new segment in address order */
|
||||||
newp=(pointer)cp;
|
newp=(pointer)cp;
|
||||||
|
Reference in New Issue
Block a user