From 56603e27708748887f0eb8dc09674077886c6551 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Tue, 30 Dec 2014 15:42:17 +0000 Subject: smb.c: Fixed compilation warning smb.c:586: warning: conversion to 'short unsigned int' from 'int' may alter its value --- lib/smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/smb.c b/lib/smb.c index 5692756f8..783544405 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -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); -- cgit v1.2.3