mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Fixed type conversion ambiguity
This commit is contained in:
		
							parent
							
								
									b07af7dda8
								
							
						
					
					
						commit
						a13ab958cb
					
				
					 32 changed files with 97 additions and 91 deletions
				
			
		|  | @ -117,7 +117,7 @@ std::string StringFromFormat(const char* format, ...) { | |||
| } | ||||
| 
 | ||||
| // For Debugging. Read out an u8 array.
 | ||||
| std::string ArrayToString(const u8* data, u32 size, int line_len, bool spaces) { | ||||
| std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) { | ||||
|     std::ostringstream oss; | ||||
|     oss << std::setfill('0') << std::hex; | ||||
| 
 | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ inline void CharArrayFromFormat(char (&out)[Count], const char* format, ...) { | |||
| } | ||||
| 
 | ||||
| // Good
 | ||||
| std::string ArrayToString(const u8* data, u32 size, int line_len = 20, bool spaces = true); | ||||
| std::string ArrayToString(const u8* data, size_t size, int line_len = 20, bool spaces = true); | ||||
| 
 | ||||
| std::string StripSpaces(const std::string& s); | ||||
| std::string StripQuotes(const std::string& s); | ||||
|  |  | |||
|  | @ -104,8 +104,7 @@ public: | |||
|     } | ||||
|     template <typename V> | ||||
|     void operator*=(const V& f) { | ||||
|         x *= f; | ||||
|         y *= f; | ||||
|         *this = *this * f; | ||||
|     } | ||||
|     template <typename V> | ||||
|     Vec2<decltype(T{} / V{})> operator/(const V& f) const { | ||||
|  | @ -262,9 +261,7 @@ public: | |||
|     } | ||||
|     template <typename V> | ||||
|     void operator*=(const V& f) { | ||||
|         x *= f; | ||||
|         y *= f; | ||||
|         z *= f; | ||||
|         *this = *this * f; | ||||
|     } | ||||
|     template <typename V> | ||||
|     Vec3<decltype(T{} / V{})> operator/(const V& f) const { | ||||
|  | @ -478,10 +475,7 @@ public: | |||
|     } | ||||
|     template <typename V> | ||||
|     void operator*=(const V& f) { | ||||
|         x *= f; | ||||
|         y *= f; | ||||
|         z *= f; | ||||
|         w *= f; | ||||
|         *this = *this * f; | ||||
|     } | ||||
|     template <typename V> | ||||
|     Vec4<decltype(T{} / V{})> operator/(const V& f) const { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue