Skip to content
Snippets Groups Projects
Commit 265b70ac authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Improved filterability.

Rev: src/modules/Image/image.h:1.39
parent 325f5896
No related branches found
No related tags found
No related merge requests found
/* /*
**! module Image **! module Image
**! note **! note
**! $Id: image.h,v 1.38 2000/08/05 23:47:27 grubba Exp $ **! $Id: image.h,v 1.39 2000/08/06 20:06:21 grubba Exp $
*/ */
#ifdef PIKE_IMAGE_IMAGE_H #ifdef PIKE_IMAGE_IMAGE_H
...@@ -42,17 +42,18 @@ extern int image_cpuid; ...@@ -42,17 +42,18 @@ extern int image_cpuid;
/* Some marcos to avoid loss of precision warnings. */ /* Some marcos to avoid loss of precision warnings. */
#ifdef __ECL #ifdef __ECL
#define DO_NOT_WARN(X) (X)
static inline int DOUBLE_TO_INT(double d) static inline int DOUBLE_TO_INT(double d)
{ {
return (int)d; return DO_NOT_WARN((int)d);
} }
static inline char DOUBLE_TO_CHAR(double d) static inline char DOUBLE_TO_CHAR(double d)
{ {
return (char)d; return DO_NOT_WARN((char)d);
} }
static inline COLORTYPE DOUBLE_TO_COLORTYPE(double d) static inline COLORTYPE DOUBLE_TO_COLORTYPE(double d)
{ {
return (COLORTYPE)d; return DO_NOT_WARN((COLORTYPE)d);
} }
#else /* !__ECL */ #else /* !__ECL */
#define DOUBLE_TO_INT(D) ((int)(D)) #define DOUBLE_TO_INT(D) ((int)(D))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment