From 229ef082c1b21fc9063010d907982be981d1970d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 22 Jul 2013 12:23:01 +0200 Subject: [PATCH] scp: Cast return value from uint64_t to size_t. --- src/scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scp.c b/src/scp.c index 41f0fac7..aba4a2dd 100644 --- a/src/scp.c +++ b/src/scp.c @@ -751,7 +751,7 @@ int ssh_scp_request_get_permissions(ssh_scp scp){ size_t ssh_scp_request_get_size(ssh_scp scp){ if(scp==NULL) return 0; - return scp->filelen; + return (size_t)scp->filelen; } /** @brief Get the size of the file being pushed from the other party.