mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	[quick-fix]file-util: fmtlib errors on FILE* type parameter. Explicitly cast it to void*
This commit is contained in:
		
							parent
							
								
									972db17247
								
							
						
					
					
						commit
						39fce60145
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -371,12 +371,12 @@ u64 GetSize(FILE* f) { | ||||||
|     // can't use off_t here because it can be 32-bit
 |     // can't use off_t here because it can be 32-bit
 | ||||||
|     u64 pos = ftello(f); |     u64 pos = ftello(f); | ||||||
|     if (fseeko(f, 0, SEEK_END) != 0) { |     if (fseeko(f, 0, SEEK_END) != 0) { | ||||||
|         NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", f, GetLastErrorMsg()); |         NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", (void*)f, GetLastErrorMsg()); | ||||||
|         return 0; |         return 0; | ||||||
|     } |     } | ||||||
|     u64 size = ftello(f); |     u64 size = ftello(f); | ||||||
|     if ((size != pos) && (fseeko(f, pos, SEEK_SET) != 0)) { |     if ((size != pos) && (fseeko(f, pos, SEEK_SET) != 0)) { | ||||||
|         NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", f, GetLastErrorMsg()); |         NGLOG_ERROR(Common_Filesystem, "GetSize: seek failed {}: {}", (void*)f, GetLastErrorMsg()); | ||||||
|         return 0; |         return 0; | ||||||
|     } |     } | ||||||
|     return size; |     return size; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue