projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f313b77
)
r258: *** empty log message ***
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sat, 16 Dec 2000 02:54:47 +0000
(
02:54
+0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sat, 16 Dec 2000 02:54:47 +0000
(
02:54
+0000)
libctsim/projections.cpp
patch
|
blob
|
history
diff --git
a/libctsim/projections.cpp
b/libctsim/projections.cpp
index 4ea093a021678ed13487c675d9733d00e1ed8908..42cc23ccfadd7a308e47c990b42774a891232bd6 100644
(file)
--- 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
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.3
0 2000/12/16 02:52:59
kevin Exp $
+** $Id: projections.cpp,v 1.3
1 2000/12/16 02:54:47
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
**
** 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);
for (int i = startView; i <= endView; i++) {
is.seekg (sizeHeader + i * sizeView);
- is.read (reinterpret_cast<
void
*>(pViewData), sizeView);
- os.write (reinterpret_cast<
void
*>(pViewData), sizeView);
+ is.read (reinterpret_cast<
char
*>(pViewData), sizeView);
+ os.write (reinterpret_cast<
char
*>(pViewData), sizeView);
if (is.fail() || os.fail())
break;
}
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];
}
unsigned char* pHdrData = new unsigned char [sizeHeader];
- is.read (reinterpret_cast<
void
*>(pHdrData), sizeHeader);
+ is.read (reinterpret_cast<
char
*>(pHdrData), sizeHeader);
if (is.fail()) {
sys_error (ERR_FATAL, "Error reading header");
return false;
}
if (is.fail()) {
sys_error (ERR_FATAL, "Error reading header");
return false;
}
- os.write (reinterpret_cast<
void
*>(pHdrData), sizeHeader);
+ os.write (reinterpret_cast<
char
*>(pHdrData), sizeHeader);
if (os.fail()) {
sys_error (ERR_FATAL, "Error writing header");
return false;
if (os.fail()) {
sys_error (ERR_FATAL, "Error writing header");
return false;