From 3b50d2115b8d54d7c14c60ba5629670f7d2abeba Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 24 May 1999 08:14:30 +0000 Subject: [PATCH] Fixed a few typos. --- debugger/expr.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/debugger/expr.c b/debugger/expr.c index bf23477da60..d8e623aa07d 100644 --- a/debugger/expr.c +++ b/debugger/expr.c @@ -9,15 +9,10 @@ #include #include #include -#include -#include -#include +#include #include "wine/winbase16.h" -#include "module.h" #include "task.h" -#include "selectors.h" #include "debugger.h" - #include "expr.h" #include @@ -131,6 +126,8 @@ DEBUG_GetFreeExpr() rtn = (struct expr *) &expr_list[next_expr_free]; next_expr_free += sizeof(struct expr); + assert(next_expr_free < sizeof(expr_list)); + return rtn; } @@ -388,7 +385,7 @@ DEBUG_EvalExpr(struct expr * exp) { fprintf(stderr, "Failed to find symbol\n"); break; - }; + } fptr = (int (*)()) rtn.off; switch(exp->un.call.nargs) @@ -606,7 +603,7 @@ DEBUG_EvalExpr(struct expr * exp) { rtn.type = DEBUG_TypeInt; } - switch(exp->un.binop.binop_type) + switch(exp->un.unop.unop_type) { case EXP_OP_NEG: rtn.seg = 0; @@ -775,7 +772,7 @@ DEBUG_DisplayExpr(struct expr * exp) fprintf(stderr, " )"); break; case EXPR_TYPE_UNOP: - switch(exp->un.binop.binop_type) + switch(exp->un.unop.unop_type) { case EXP_OP_NEG: fprintf(stderr, "-");