vo_opengl: remove possibly undefined behavior

This commit is contained in:
wm4 committed 2016-05-16 12:53:45 +02:00
1 parent 70df6aa375
commit 51307e9f18
1 file changed
+3 -1
+3 -1
View File
@@ -1633,7 +1633,9 @@ static float eval_szexpr(struct gl_video *p, struct img_tex tex,
}
// Pop the operands in reverse order
float op2 = stack[--idx], op1 = stack[--idx], res = 0.0;
float op2 = stack[--idx];
float op1 = stack[--idx];
float res = 0.0;
switch (expr[i].val.op) {
case SZEXP_OP_ADD: res = op1 + op2; break;
case SZEXP_OP_SUB: res = op1 - op2; break;