mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	ggml, ci : Windows ARM runner and build fixes (#5979)
* windows arm ci * fix `error C2078: too many initializers` with ggml_vld1q_u32 macro for MSVC ARM64 * fix `warning C4146: unary minus operator applied to unsigned type, result still unsigned` * fix `error C2065: '__fp16': undeclared identifier`
This commit is contained in:
		 Michael Podvitskiy
					Michael Podvitskiy
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							332bdfd798
						
					
				
				
					commit
					3202361c5b
				
			| @@ -13980,7 +13980,7 @@ int32_t llama_token_to_piece(const struct llama_model * model, llama_token token | ||||
|             } else if (llama_is_user_defined_token(model->vocab, token)) { | ||||
|                 std::string result = model->vocab.id_to_token[token].text; | ||||
|                 if (length < (int) result.length()) { | ||||
|                     return -result.length(); | ||||
|                     return -(int) result.length(); | ||||
|                 } | ||||
|                 memcpy(buf, result.c_str(), result.length()); | ||||
|                 return result.length(); | ||||
| @@ -14015,7 +14015,7 @@ int32_t llama_token_to_piece(const struct llama_model * model, llama_token token | ||||
|             } else if (llama_is_user_defined_token(model->vocab, token)) { | ||||
|                 std::string result = model->vocab.id_to_token[token].text; | ||||
|                 if (length < (int) result.length()) { | ||||
|                     return -result.length(); | ||||
|                     return -(int) result.length(); | ||||
|                 } | ||||
|                 memcpy(buf, result.c_str(), result.length()); | ||||
|                 return result.length(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user