From 87e4b600081379d02fe5e4058b72eef2a2cf5875 Mon Sep 17 00:00:00 2001 From: digital dreamer Date: Tue, 3 Jun 2014 19:31:44 +0200 Subject: [PATCH] fix possible compile error with implicit time_t conversion --- src/twister_rss.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/twister_rss.cpp b/src/twister_rss.cpp index 6bc9f3dc..b58c6876 100644 --- a/src/twister_rss.cpp +++ b/src/twister_rss.cpp @@ -101,7 +101,7 @@ int generateRSS(string uri, string *output) postAuthor=messages[j].name_; postTitle="Direct Message from "+postAuthor; postMsg=find_value(userArray[i].get_obj(),"text").get_str(); - time_t postTime(find_value(userArray[i].get_obj(),"time").get_int64()); + Value postTime = find_value(userArray[i].get_obj(),"time"); Object item; item.push_back(Pair("time",postTime)); @@ -145,7 +145,7 @@ int generateRSS(string uri, string *output) postMsg = find_value(rt.get_obj(),"msg").get_str(); } - time_t postTime(find_value(userpost,"time").get_int64()); + Value postTime = find_value(userpost,"time"); Object item; item.push_back(Pair("time",postTime));