Commit bd78d658f3cbded4e7d534ab4faa46b6330f55dc

Authored by David Mayerich
1 parent 889c89dd

Pranathi's image.h fix

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
stim/image/image.h
@@ -327,7 +327,7 @@ public: @@ -327,7 +327,7 @@ public:
327 void save(std::string filename){ 327 void save(std::string filename){
328 stim::filename file(filename); 328 stim::filename file(filename);
329 if (file.extension() == "raw" || file.extension() == "") { 329 if (file.extension() == "raw" || file.extension() == "") {
330 - std::ofstream outfile(filename, std::ios::binary); 330 + std::ofstream outfile(filename.c_str(), std::ios::binary);
331 outfile.write((char*)img, sizeof(T) * R[0] * R[1] * R[2]); 331 outfile.write((char*)img, sizeof(T) * R[0] * R[1] * R[2]);
332 outfile.close(); 332 outfile.close();
333 } 333 }