X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fprojections.cpp;h=4ea093a021678ed13487c675d9733d00e1ed8908;hp=49aaa9942b078ea417817adb45789a0de5df26bc;hb=f313b7708626e8900c4eeea6cf73d4507057a1c6;hpb=6afa21de8aa00b405de47584efe108c71df33e1b diff --git a/libctsim/projections.cpp b/libctsim/projections.cpp index 49aaa99..4ea093a 100644 --- a/libctsim/projections.cpp +++ b/libctsim/projections.cpp @@ -8,7 +8,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: projections.cpp,v 1.29 2000/12/16 02:31:00 kevin Exp $ +** $Id: projections.cpp,v 1.30 2000/12/16 02:52:59 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -372,8 +372,8 @@ Projections::copyViewData (const char* const filename, ostream& os, int startVie for (int i = startView; i <= endView; i++) { is.seekg (sizeHeader + i * sizeView); - is.read (pViewData, sizeView); - os.write (pViewData, sizeView); + is.read (reinterpret_cast(pViewData), sizeView); + os.write (reinterpret_cast(pViewData), sizeView); if (is.fail() || os.fail()) break; } @@ -407,13 +407,13 @@ Projections::copyHeader (const char* const filename, ostream& os) } unsigned char* pHdrData = new unsigned char [sizeHeader]; - is.read (pHdrData, sizeHeader); + is.read (reinterpret_cast(pHdrData), sizeHeader); if (is.fail()) { sys_error (ERR_FATAL, "Error reading header"); return false; } - os.write (pHdrData, sizeHeader); + os.write (reinterpret_cast(pHdrData), sizeHeader); if (os.fail()) { sys_error (ERR_FATAL, "Error writing header"); return false;