aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-12-14 12:02:59 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-12-14 12:02:59 +0000
commitd075b08ad29e9c25ab9c18063f8b5c962a6410d3 (patch)
tree5ddc4467bd9fad4492322328ce277247c12e5fc6 /ui
parent39c816931cd71127fd4ee20e6dbb0a59de7c2bc2 (diff)
Try to cast avay:
follow_tcp.c(323) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data follow_tcp.c(327) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data follow_tcp.c(529) : warning C4267: '=' : conversion from 'size_t' to 'uInt', possible loss of data svn path=/trunk/; revision=46539
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/follow_tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/follow_tcp.c b/ui/gtk/follow_tcp.c
index 7d78ffc7a7..72b21c3445 100644
--- a/ui/gtk/follow_tcp.c
+++ b/ui/gtk/follow_tcp.c
@@ -320,11 +320,11 @@ sgetline(char *str, int *next) {
end = strstr(str, "\r\n");
if (!end) {
- *next = strlen(str);
+ *next = (int)strlen(str);
return NULL;
}
*end = '\0';
- *next = end-str+2;
+ *next = (int)(end-str+2);
return str;
}
@@ -526,7 +526,7 @@ frs_return_t
if (gunzip) {
strm.next_in = buffer;
- strm.avail_in = nchars;
+ strm.avail_in = (int)nchars;
do {
strm.next_out = outbuffer;
strm.avail_out = FLT_BUF_SIZE;