From ed858a5d6547671b93817132736cc46849e17cac Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 2 Jan 2016 11:36:23 +0100 Subject: [PATCH] fix for compiler warning --- src/ebusd/mainloop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebusd/mainloop.cpp b/src/ebusd/mainloop.cpp index abb9c84e..b8014642 100644 --- a/src/ebusd/mainloop.cpp +++ b/src/ebusd/mainloop.cpp @@ -1132,7 +1132,7 @@ string MainLoop::executeGet(vector &args, bool& connected) result << "\n \"lastup\": " << setw(0) << dec << static_cast(lastup); if (lastup != 0) { result << ",\n \"zz\": \"" << setfill('0') << setw(2) << hex << static_cast(dstAddress) << "\""; - size_t pos = result.tellp(); + size_t pos = (size_t)result.tellp(); result << ",\n \"fields\": {"; result_t dret = message->decodeLastData(result, (verbose?OF_VERBOSE:0)|(numeric?OF_NUMERIC:0)|OF_JSON); if (dret==RESULT_OK) {