forked from eden-emu/eden
		
	gdbstub: Resolve sign conversion errors
This commit is contained in:
		
							parent
							
								
									63a3b54c1f
								
							
						
					
					
						commit
						f1d916de5e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -468,7 +468,8 @@ static u8 ReadByte() { | |||
| 
 | ||||
| /// Calculate the checksum of the current command buffer.
 | ||||
| static u8 CalculateChecksum(const u8* buffer, std::size_t length) { | ||||
|     return static_cast<u8>(std::accumulate(buffer, buffer + length, 0, std::plus<u8>())); | ||||
|     return static_cast<u8>(std::accumulate(buffer, buffer + length, u8{0}, | ||||
|                                            [](u8 lhs, u8 rhs) { return u8(lhs + rhs); })); | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash