diff src/parse.y @ 5760:8d7162924bd3

[project @ 2006-04-14 04:01:37 by jwe]
author jwe
date Fri, 14 Apr 2006 04:01:40 +0000
parents b09d4d0f5b63
children 7ba9ad1fec11
line wrap: on
line diff
--- a/src/parse.y	Thu Apr 13 13:04:33 2006 +0000
+++ b/src/parse.y	Fri Apr 14 04:01:40 2006 +0000
@@ -3113,7 +3113,7 @@
 	  if (! have_help_text)
 	    {
 	      first_comments_seen = true;
-	      help_txt += (char) c;
+	      help_txt += static_cast<char> (c);
 	    }
 
 	  if (c == '\n')
@@ -3213,7 +3213,7 @@
 
       if (fptr)
 	{
-	  unwind_protect::add (safe_fclose, (void *) fptr);
+	  unwind_protect::add (safe_fclose, fptr);
 
 	  retval = gobble_leading_white_space (fptr, true, true, false);
 
@@ -3330,8 +3330,8 @@
 	  YY_BUFFER_STATE old_buf = current_buffer ();
 	  YY_BUFFER_STATE new_buf = create_buffer (ffile);
 
-	  unwind_protect::add (restore_input_buffer, (void *) old_buf);
-	  unwind_protect::add (delete_input_buffer, (void *) new_buf);
+	  unwind_protect::add (restore_input_buffer, old_buf);
+	  unwind_protect::add (delete_input_buffer, new_buf);
 
 	  switch_to_buffer (new_buf);