summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-25 14:55:13 +0900
committerHermet Park <hermetpark@gmail.com>2018-06-25 14:55:13 +0900
commit592de0e4b654e2653083bef662f35fe907334cbb (patch)
treeb9e0be7019a042c215c8e5d9e1fa269261dd44fc
parent21112fbf587c929b7d39dbaec9c07f18d281d865 (diff)
eina_stringshare: cast in order to fix a warning
Summary: casting here is safe, as before we check and return on size < 1. Depends on D6379 Reviewers: devilhorns, Hermet Reviewed By: Hermet Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6380
-rw-r--r--src/lib/eina/eina_stringshare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_stringshare.c b/src/lib/eina/eina_stringshare.c
index 25090443ec..6ccd1cfecc 100644
--- a/src/lib/eina/eina_stringshare.c
+++ b/src/lib/eina/eina_stringshare.c
@@ -679,7 +679,7 @@ eina_stringshare_nprintf(unsigned int len, const char *fmt, ...)
679 679
680 if (size < 1) 680 if (size < 1)
681 return ""; 681 return "";
682 if (size > len) 682 if ((unsigned int)size > len)
683 size = len; 683 size = len;
684 684
685 return eina_stringshare_add_length(tmp, size); 685 return eina_stringshare_add_length(tmp, size);