From 369e68a86509a766fbbc5d9b7c6a0a760102d283 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 9 Aug 2005 15:17:41 +0000 Subject: add a new style cast to memcpy. --- dab/board.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dab') 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 #include @@ -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(memcpy(_b[y], b._b[y], _tx * sizeof(int))); } } -- cgit v1.2.3-56-ge451