Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
265b70ac
Commit
265b70ac
authored
24 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/Image/image.h
+5
-4
5 additions, 4 deletions
src/modules/Image/image.h
with
5 additions
and
4 deletions
src/modules/Image/image.h
+
5
−
4
View file @
265b70ac
/*
/*
**! module Image
**! module Image
**! note
**! note
**! $Id: image.h,v 1.3
8
2000/08/0
5
2
3:47
:2
7
grubba Exp $
**! $Id: image.h,v 1.3
9
2000/08/0
6
2
0:06
:2
1
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))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment