mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fixed warnings
This commit is contained in:
		
							parent
							
								
									88c701888d
								
							
						
					
					
						commit
						47d3d068dd
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1917,7 +1917,7 @@ namespace Slic3r {
 | 
			
		|||
            int max_id = faces.front()[0];
 | 
			
		||||
            for (const Vec3i& face : faces) {
 | 
			
		||||
                for (const int tri_id : face) {
 | 
			
		||||
                    if (tri_id < 0 || tri_id >= geometry.vertices.size()) {
 | 
			
		||||
                    if (tri_id < 0 || tri_id >= int(geometry.vertices.size())) {
 | 
			
		||||
                        add_error("Found invalid vertex id");
 | 
			
		||||
                        return false;
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -73,7 +73,7 @@ bool load_obj(const char *path, TriangleMesh *meshptr)
 | 
			
		|||
                    break;
 | 
			
		||||
                } else {
 | 
			
		||||
                    assert(cnt < 4);
 | 
			
		||||
                    if (vertex.coordIdx < 0 || vertex.coordIdx >= its.vertices.size()) {
 | 
			
		||||
                    if (vertex.coordIdx < 0 || vertex.coordIdx >= int(its.vertices.size())) {
 | 
			
		||||
                        BOOST_LOG_TRIVIAL(error) << "load_obj: failed to parse " << path << ". The file contains invalid vertex index.";
 | 
			
		||||
                        return false;
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue