Use the max function in main.cpp
This commit is contained in:
		
							parent
							
								
									3cddc7907e
								
							
						
					
					
						commit
						66e1926783
					
				@ -56,7 +56,7 @@ int main(int argc, char* argv[]) {
 | 
				
			|||||||
                                #else
 | 
					                                #else
 | 
				
			||||||
                                  unsigned long position2 = fileName.find_last_of('\\');
 | 
					                                  unsigned long position2 = fileName.find_last_of('\\');
 | 
				
			||||||
                                  if (cmp_not_equal(position2, string_view::npos)) {
 | 
					                                  if (cmp_not_equal(position2, string_view::npos)) {
 | 
				
			||||||
                                      lastSlash = (position1 > position2) ? position1 : position2;
 | 
					                                      lastSlash = max(position1, position2);
 | 
				
			||||||
                                  }
 | 
					                                  }
 | 
				
			||||||
                                #endif
 | 
					                                #endif
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user