diff liboctave/lo-utils.cc @ 4784:743ef6154f8a

[project @ 2004-02-17 19:59:23 by jwe]
author jwe
date Tue, 17 Feb 2004 19:59:23 +0000
parents c0a23a13eea2
children 23b37da9fd5b
line wrap: on
line diff
--- a/liboctave/lo-utils.cc
+++ b/liboctave/lo-utils.cc
@@ -54,7 +54,7 @@
   else if (x < INT_MIN)
     return INT_MIN;
   else
-    return (x > 0) ? ((int) (x + 0.5)) : ((int) (x - 0.5));
+    return static_cast<int> ((x > 0) ? (x + 0.5) : (x - 0.5));
 }
 
 double