From dfb2cecc197dd2f7bd714fe5f244c6b25789bb54 Mon Sep 17 00:00:00 2001 From: clifford Date: Mon, 6 Jul 2009 07:58:12 +0000 Subject: Clifford Wolf: Fixed two compiler warnings git-svn-id: http://svn.clifford.at/openscad/trunk@51 b57f626f-c46c-0410-a088-ec61d464b74c diff --git a/expr.cc b/expr.cc index f0e45d7..81fe7b3 100644 --- a/expr.cc +++ b/expr.cc @@ -73,7 +73,7 @@ Value Expression::evaluate(const Context *context) const Value v1 = children[0]->evaluate(context); Value v2 = children[1]->evaluate(context); if (v1.type == Value::VECTOR && v2.type == Value::NUMBER) { - int i = v2.num; + int i = (int)(v2.num); if (i < v1.vec.size()) return *v1.vec[i]; } diff --git a/lexer.l b/lexer.l index 4ec72b7..252f5b7 100644 --- a/lexer.l +++ b/lexer.l @@ -24,6 +24,7 @@ #include "parser_yacc.h" int lexerget_lineno(void); +static void yyunput(int, char*) __attribute__((unused)); extern const char *parser_input_buffer; #define YY_INPUT(buf,result,max_size) { \ -- cgit v0.10.1