Elimate compiler warnings
[ctsim.git] / libctgraphics / pol.cpp
index 78202f5714cf05f41fb1998b8910a922e443562a..da43586cf38ca26aadfb285e969c6e77d0be3a11 100644 (file)
@@ -4,9 +4,7 @@
 **   POL - Problem Oriented Language
 **
 **  This is part of the CTSim program
-**  Copyright (c) 1983-2001 Kevin Rosenberg
-**
-**  $Id$
+**  Copyright (c) 1983-2009 Kevin Rosenberg
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -311,10 +309,11 @@ POL::tok (struct token_st *token)
 {
   if (token->ready == false)
     getpol_tok(token);
-  else
+  else {
     if (token->type == TT_EOF && lookchar() != EOF)
       getpol_tok(token);
-    return (token->type);
+  }
+  return (token->type);
 }
 
 void