From 65c3b110e48a73b4bc6fe2cb1f37d2415c0aa3d2 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 27 Mar 2020 09:16:06 +1100 Subject: Backport: Avoid casts by returning size_t from GetExpanded. Backport of changeset 8099:2228fb724ce7. --- lexlib/PropSetSimple.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib/PropSetSimple.h') diff --git a/lexlib/PropSetSimple.h b/lexlib/PropSetSimple.h index ba4e42446..d4a5b2243 100644 --- a/lexlib/PropSetSimple.h +++ b/lexlib/PropSetSimple.h @@ -19,7 +19,7 @@ public: void Set(const char *key, const char *val, size_t lenKey, size_t lenVal); void SetMultiple(const char *); const char *Get(const char *key) const; - int GetExpanded(const char *key, char *result) const; + size_t GetExpanded(const char *key, char *result) const; int GetInt(const char *key, int defaultValue=0) const; }; -- cgit v1.2.3