1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

data types: convert more to use size_t and uint32_t

This commit is contained in:
Daniel Stenberg
2010-04-17 13:34:44 +02:00
parent 13caffa00e
commit 100059989f
5 changed files with 42 additions and 42 deletions

View File

@@ -92,7 +92,7 @@ static int sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle);
*/
static void _libssh2_store_u64(unsigned char **ptr, libssh2_uint64_t value)
{
unsigned long msl = (unsigned long)(value >> 32);
uint32_t msl = (uint32_t)(value >> 32);
unsigned char *buf = *ptr;
buf[0] = (unsigned char)((msl >> 24) & 0xFF);