diff src/ls-oct-binary.cc @ 4944:44046bbaa52c

[project @ 2004-08-31 05:30:46 by jwe]
author jwe
date Tue, 31 Aug 2004 05:30:47 +0000
parents c88afb778c41
children 4c8a2e4e0717
line wrap: on
line diff
--- a/src/ls-oct-binary.cc
+++ b/src/ls-oct-binary.cc
@@ -153,7 +153,7 @@
   if (! is)
     return retval;
   if (swap)
-    swap_4_bytes (X_CAST (char *, &name_len));
+    swap_bytes<4> (&name_len);
 
   {
     OCTAVE_LOCAL_BUFFER (char, name, name_len+1);
@@ -167,7 +167,7 @@
   if (! is)
     goto data_read_error;
   if (swap)
-    swap_4_bytes (X_CAST (char *, &doc_len));
+    swap_bytes<4> (&doc_len);
 
   {
     OCTAVE_LOCAL_BUFFER (char, tdoc, doc_len+1);
@@ -213,7 +213,7 @@
 	if (! is.read (X_CAST (char *, &len), 4))
 	  goto data_read_error;
 	if (swap)
-	  swap_4_bytes (X_CAST (char *, &len));
+	  swap_bytes<4> (&len);
 	OCTAVE_LOCAL_BUFFER (char, s, len+1);
 	if (! is.read (X_CAST (char *, s), len))
 	  goto data_read_error;
@@ -240,7 +240,7 @@
 	if (! is.read (X_CAST (char *, &len), 4))
 	  goto data_read_error;
 	if (swap)
-	  swap_4_bytes (X_CAST (char *, &len));
+	  swap_bytes<4> (&len);
 	OCTAVE_LOCAL_BUFFER (char, s, len+1);
 	if (! is.read (X_CAST (char *, s), len))
 	  goto data_read_error;