Skip to content
Snippets Groups Projects
Commit d02fc74a authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

(severe bug)-fix (popped args, used args, in that order)

Rev: src/modules/Image/operator.c:1.13
parent 0808b29a
No related branches found
No related tags found
No related merge requests found
/* $Id: operator.c,v 1.12 1998/01/24 17:30:58 per Exp $ */ /* $Id: operator.c,v 1.13 1998/01/25 10:13:49 mirar Exp $ */
/* /*
**! module Image **! module Image
**! note **! note
**! $Id: operator.c,v 1.12 1998/01/24 17:30:58 per Exp $ **! $Id: operator.c,v 1.13 1998/01/25 10:13:49 mirar Exp $
**! class image **! class image
*/ */
...@@ -80,9 +80,6 @@ extern struct program *image_program; ...@@ -80,9 +80,6 @@ extern struct program *image_program;
img=(struct image*)o->storage; \ img=(struct image*)o->storage; \
if (!img->img) { free_object(o); error("out of memory\n"); } \ if (!img->img) { free_object(o); error("out of memory\n"); } \
\ \
pop_n_elems(args); \
push_object(o); \
\
s1=THIS->img; \ s1=THIS->img; \
if (oper) s2=oper->img; else s2=NULL; \ if (oper) s2=oper->img; else s2=NULL; \
d=img->img; \ d=img->img; \
...@@ -129,6 +126,8 @@ STANDARD_OPERATOR_HEADER("`-") ...@@ -129,6 +126,8 @@ STANDARD_OPERATOR_HEADER("`-")
s1++; d++; s1++; d++;
} }
THREADS_DISALLOW(); THREADS_DISALLOW();
pop_n_elems(args);
push_object(o);
} }
/* /*
...@@ -167,6 +166,8 @@ STANDARD_OPERATOR_HEADER("`+") ...@@ -167,6 +166,8 @@ STANDARD_OPERATOR_HEADER("`+")
s1++; d++; s1++; d++;
} }
THREADS_DISALLOW(); THREADS_DISALLOW();
pop_n_elems(args);
push_object(o);
} }
/* /*
...@@ -213,6 +214,8 @@ STANDARD_OPERATOR_HEADER("`*") ...@@ -213,6 +214,8 @@ STANDARD_OPERATOR_HEADER("`*")
s1++; d++; s1++; d++;
} }
THREADS_DISALLOW(); THREADS_DISALLOW();
pop_n_elems(args);
push_object(o);
} }
/* /*
...@@ -253,6 +256,8 @@ STANDARD_OPERATOR_HEADER("`| 'maximum'") ...@@ -253,6 +256,8 @@ STANDARD_OPERATOR_HEADER("`| 'maximum'")
s1++; s2++; d++; s1++; s2++; d++;
} }
THREADS_DISALLOW(); THREADS_DISALLOW();
pop_n_elems(args);
push_object(o);
} }
/* /*
...@@ -293,6 +298,8 @@ STANDARD_OPERATOR_HEADER("`& 'minimum'") ...@@ -293,6 +298,8 @@ STANDARD_OPERATOR_HEADER("`& 'minimum'")
s1++; d++; s1++; d++;
} }
THREADS_DISALLOW(); THREADS_DISALLOW();
pop_n_elems(args);
push_object(o);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment