1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

smb.c: Fixed compilation warning

smb.c:586: warning: conversion to 'short unsigned int' from 'int' may
           alter its value
This commit is contained in:
Steve Holme 2014-12-30 15:42:17 +00:00
parent 89cce1e458
commit 56603e2770

View File

@ -583,7 +583,7 @@ static CURLcode smb_send_write(struct connectdata *conn)
msg->offset_high = smb_swap32((unsigned int) (offset >> 32));
msg->data_length = smb_swap16((unsigned short) upload_size);
msg->data_offset = smb_swap16(sizeof(*msg) - sizeof(unsigned int));
msg->byte_count = smb_swap16((unsigned short) upload_size + 1);
msg->byte_count = smb_swap16((unsigned short) (upload_size + 1));
smb_format_message(conn, &msg->h, SMB_COM_WRITE_ANDX,
sizeof(*msg) - sizeof(msg->h) + (size_t) upload_size);