mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed C++17 incompatibility.
This commit is contained in:
		
							parent
							
								
									0802823703
								
							
						
					
					
						commit
						fd3651d994
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -612,7 +612,7 @@ void ConfigBase::load_from_gcode_file(const std::string &file) | |||
| 	} | ||||
|     ifs.seekg(0, ifs.end); | ||||
| 	auto file_length = ifs.tellg(); | ||||
| 	auto data_length = std::min<std::fstream::streampos>(65535, file_length); | ||||
| 	auto data_length = std::min<std::fstream::pos_type>(65535, file_length); | ||||
| 	ifs.seekg(file_length - data_length, ifs.beg); | ||||
|     std::vector<char> data(size_t(data_length) + 1, 0); | ||||
|     ifs.read(data.data(), data_length); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv