memory error in vips_sign()
This commit is contained in:
parent
0fc9c286ee
commit
97424321ac
@ -57,7 +57,7 @@ typedef VipsUnaryClass VipsSignClass;
|
|||||||
G_DEFINE_TYPE( VipsSign, vips_sign, VIPS_TYPE_UNARY );
|
G_DEFINE_TYPE( VipsSign, vips_sign, VIPS_TYPE_UNARY );
|
||||||
|
|
||||||
#define CSIGN( TYPE ) { \
|
#define CSIGN( TYPE ) { \
|
||||||
TYPE *p = (TYPE *) in; \
|
TYPE *p = (TYPE *) in[0]; \
|
||||||
TYPE *q = (TYPE *) out; \
|
TYPE *q = (TYPE *) out; \
|
||||||
int x; \
|
int x; \
|
||||||
\
|
\
|
||||||
@ -82,7 +82,7 @@ G_DEFINE_TYPE( VipsSign, vips_sign, VIPS_TYPE_UNARY );
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define SIGN( TYPE ) { \
|
#define SIGN( TYPE ) { \
|
||||||
TYPE *p = (TYPE *) in; \
|
TYPE *p = (TYPE *) in[0]; \
|
||||||
signed char *q = (signed char *) out; \
|
signed char *q = (signed char *) out; \
|
||||||
int x; \
|
int x; \
|
||||||
\
|
\
|
||||||
|
Loading…
Reference in New Issue
Block a user