Mercurial > hg > octave-nkf
diff liboctave/oct-sort.cc @ 5760:8d7162924bd3
[project @ 2006-04-14 04:01:37 by jwe]
author | jwe |
---|---|
date | Fri, 14 Apr 2006 04:01:40 +0000 |
parents | 4c8a2e4e0717 |
children | 1de9a198a303 |
line wrap: on
line diff
--- a/liboctave/oct-sort.cc +++ b/liboctave/oct-sort.cc @@ -437,7 +437,7 @@ roundupsize(int n) { unsigned int nbits = 3; - unsigned int n2 = (unsigned int)n >> 8; + unsigned int n2 = static_cast<unsigned int> (n) >> 8; /* Round up: * If n < 256, to a multiple of 8. @@ -483,7 +483,7 @@ * we don't care what's in the block. */ merge_freemem( ); - ms.a = (T *) malloc (need * sizeof (T)); + ms.a = static_cast <T *> (malloc (need * sizeof (T))); if (ms.a) { ms.alloced = need; return 0;