mirror of https://github.com/CGAL/cgal
int -> size_t
This commit is contained in:
parent
83795f53ca
commit
fe94bcf804
|
|
@ -79,7 +79,7 @@ File_header_OFF::File_header_OFF(
|
||||||
//{
|
//{
|
||||||
// set_halfedges(h);
|
// set_halfedges(h);
|
||||||
//}
|
//}
|
||||||
File_header_OFF::File_header_OFF( int v, int h, int f,
|
File_header_OFF::File_header_OFF( std::size_t v, std::size_t h, std::size_t f,
|
||||||
bool binary, bool noc, bool skel, bool verbose)
|
bool binary, bool noc, bool skel, bool verbose)
|
||||||
: File_header_extended_OFF( verbose),
|
: File_header_extended_OFF( verbose),
|
||||||
n_vertices(v),
|
n_vertices(v),
|
||||||
|
|
@ -128,7 +128,7 @@ File_header_OFF::File_header_OFF(
|
||||||
m_dim(3)
|
m_dim(3)
|
||||||
{}
|
{}
|
||||||
File_header_OFF::File_header_OFF(
|
File_header_OFF::File_header_OFF(
|
||||||
int v, int h, int f,
|
std::size_t v, std::size_t h, std::size_t f,
|
||||||
const File_header_extended_OFF& ext_header)
|
const File_header_extended_OFF& ext_header)
|
||||||
: File_header_extended_OFF( ext_header),
|
: File_header_extended_OFF( ext_header),
|
||||||
n_vertices(v),
|
n_vertices(v),
|
||||||
|
|
@ -146,7 +146,7 @@ File_header_OFF::File_header_OFF(
|
||||||
set_halfedges(h);
|
set_halfedges(h);
|
||||||
}
|
}
|
||||||
File_header_OFF::File_header_OFF(
|
File_header_OFF::File_header_OFF(
|
||||||
int v, int h, int f,
|
std::size_t v, std::size_t h, std::size_t f,
|
||||||
const File_header_extended_OFF& ext_header,
|
const File_header_extended_OFF& ext_header,
|
||||||
bool binary, bool noc, bool skel)
|
bool binary, bool noc, bool skel)
|
||||||
: File_header_extended_OFF( ext_header),
|
: File_header_extended_OFF( ext_header),
|
||||||
|
|
@ -187,8 +187,8 @@ std::ostream& operator<<( std::ostream& out, const File_header_OFF& h) {
|
||||||
out << "OFF";
|
out << "OFF";
|
||||||
if ( h.binary()) {
|
if ( h.binary()) {
|
||||||
out << " BINARY\n";
|
out << " BINARY\n";
|
||||||
I_Binary_write_big_endian_integer32( out, h.size_of_vertices());
|
I_Binary_write_big_endian_integer32( out, static_cast<int>(h.size_of_vertices()));
|
||||||
I_Binary_write_big_endian_integer32( out, h.size_of_facets());
|
I_Binary_write_big_endian_integer32( out, static_cast<int>(h.size_of_facets()));
|
||||||
if ( h.off())
|
if ( h.off())
|
||||||
I_Binary_write_big_endian_integer32( out, 0);
|
I_Binary_write_big_endian_integer32( out, 0);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -327,7 +327,7 @@ std::istream& operator>>( std::istream& in, File_header_OFF& h) {
|
||||||
} else {
|
} else {
|
||||||
int n;
|
int n;
|
||||||
if ( h.n_dimensional()) {
|
if ( h.n_dimensional()) {
|
||||||
h.set_dimension( h.size_of_vertices());
|
h.set_dimension( static_cast<int>(h.size_of_vertices()));
|
||||||
in >> n;
|
in >> n;
|
||||||
h.set_vertices(n);
|
h.set_vertices(n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue