Skip to content

Commit

Permalink
Explicitly open in binary mode for PLY writing
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed May 4, 2021
1 parent 7004c14 commit 6aab223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ BoundingBox getExtent(GDALDataset *dataset){

void writePly(const std::string &filename, int thread){
// Start writing ply file
std::ofstream f (filename);
std::ofstream f (filename, std::ios::binary);
f << "ply" << std::endl;

if (IS_BIG_ENDIAN){
Expand Down

0 comments on commit 6aab223

Please sign in to comment.