diff src/file-io.cc @ 4254:df5f2e433a11

[project @ 2002-12-31 19:43:07 by jwe]
author jwe
date Tue, 31 Dec 2002 19:43:07 +0000
parents ccfdb55c8156
children e556870ce8f0
line wrap: on
line diff
--- a/src/file-io.cc
+++ b/src/file-io.cc
@@ -246,7 +246,7 @@
 
 	  if (! err)
 	    {
-	      retval(1) = static_cast<double> (tmp.length ());
+	      retval(1) = tmp.length ();
 	      retval(0) = tmp;
 	    }
 	}
@@ -292,7 +292,7 @@
 
 	  if (! err)
 	    {
-	      retval(1) = static_cast<double> (tmp.length ());
+	      retval(1) = tmp.length ();
 	      retval(0) = tmp;
 	    }
 	}
@@ -623,7 +623,7 @@
       octave_stream os = octave_stream_list::lookup (args(0), "ftell");
 
       if (! error_state)
-	retval = static_cast<double> (os.tell ());
+	retval = os.tell ();
     }
   else
     print_usage ("ftell");
@@ -949,7 +949,7 @@
 		      // position will clear it.
 		      std::string errmsg = os.error ();
 
-		      retval(3) = static_cast<double> (os.tell () + 1);
+		      retval(3) = os.tell () + 1;
 		      retval(2) = errmsg;
 		      retval(1) = count;
 		      retval(0) = tmp;