Mercurial > hg > octave-nkf
diff liboctave/oct-alloc.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 | ace8d8d26933 |
line wrap: on
line diff
--- a/liboctave/oct-alloc.cc +++ b/liboctave/oct-alloc.cc @@ -79,13 +79,14 @@ while (p < last) { char *next = p + item_size; - (X_CAST (link *, p)) -> next = X_CAST (link *, next); + (reinterpret_cast<link *> (p)) -> next + = reinterpret_cast<link *> (next); p = next; } - (X_CAST (link *, last)) -> next = 0; + (reinterpret_cast<link *> (last)) -> next = 0; - head = X_CAST (link *, start); + head = reinterpret_cast<link *> (start); } else {