diff options
author | christos <christos@NetBSD.org> | 2005-08-09 15:17:41 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2005-08-09 15:17:41 +0000 |
commit | 369e68a86509a766fbbc5d9b7c6a0a760102d283 (patch) | |
tree | 13d7f7fd458d7436744e1253ca3551262ea54d0a /dab | |
parent | b27968d204485e4c53a81f93c860842844de05ab (diff) | |
download | bsdgames-darwin-369e68a86509a766fbbc5d9b7c6a0a760102d283.tar.gz bsdgames-darwin-369e68a86509a766fbbc5d9b7c6a0a760102d283.tar.zst bsdgames-darwin-369e68a86509a766fbbc5d9b7c6a0a760102d283.zip |
add a new style cast to memcpy.
Diffstat (limited to 'dab')
-rw-r--r-- | dab/board.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dab/board.cc b/dab/board.cc index dcded524..d9a541b2 100644 --- a/dab/board.cc +++ b/dab/board.cc @@ -1,4 +1,4 @@ -/* $NetBSD: board.cc,v 1.2 2005/08/09 02:38:32 christos Exp $ */ +/* $NetBSD: board.cc,v 1.3 2005/08/09 15:17:41 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -40,7 +40,7 @@ * board.C: Board manipulations */ #include "defs.h" -RCSID("$NetBSD: board.cc,v 1.2 2005/08/09 02:38:32 christos Exp $") +RCSID("$NetBSD: board.cc,v 1.3 2005/08/09 15:17:41 christos Exp $") #include <stdio.h> #include <string.h> @@ -77,7 +77,7 @@ BOARD::BOARD(const BOARD& b) : for (size_t y = 0; y < _ty; y++) { _b[y] = new int[_tx]; - (void) memcpy(_b[y], b._b[y], _tx * sizeof(int)); + static_cast<void>(memcpy(_b[y], b._b[y], _tx * sizeof(int))); } } |