mirror of https://github.com/CGAL/cgal
use std::int32_t
This commit is contained in:
parent
b8d5c5e89a
commit
6c83e73cbc
|
|
@ -21,6 +21,7 @@
|
||||||
#include <CGAL/IO/File_header_OFF.h>
|
#include <CGAL/IO/File_header_OFF.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace CGAL {
|
namespace CGAL {
|
||||||
|
|
||||||
|
|
@ -77,13 +78,13 @@ public:
|
||||||
}
|
}
|
||||||
void write_facet_begin( std::size_t no) {
|
void write_facet_begin( std::size_t no) {
|
||||||
if ( m_header.binary())
|
if ( m_header.binary())
|
||||||
I_Binary_write_big_endian_integer32( out(), static_cast<boost::int32_t>(no));
|
I_Binary_write_big_endian_integer32( out(), static_cast<std::int32_t>(no));
|
||||||
else
|
else
|
||||||
out() << no << ' ';
|
out() << no << ' ';
|
||||||
}
|
}
|
||||||
void write_facet_vertex_index( std::size_t index) {
|
void write_facet_vertex_index( std::size_t index) {
|
||||||
if ( m_header.binary())
|
if ( m_header.binary())
|
||||||
I_Binary_write_big_endian_integer32( out(), static_cast<boost::int32_t>(index));
|
I_Binary_write_big_endian_integer32( out(), static_cast<std::int32_t>(index));
|
||||||
else
|
else
|
||||||
out() << ' ' << index;
|
out() << ' ' << index;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue