Mercurial > hg > orthanc
diff OrthancCppClient/OrthancConnection.cpp @ 585:b2357f1f026f
fix types
author | jodogne |
---|---|
date | Tue, 01 Oct 2013 16:38:14 +0200 |
parents | eaca3d38b2aa |
children | 9d2592c08919 |
line wrap: on
line diff
--- a/OrthancCppClient/OrthancConnection.cpp Mon Sep 30 17:46:03 2013 +0200 +++ b/OrthancCppClient/OrthancConnection.cpp Tue Oct 01 16:38:14 2013 +0200 @@ -87,8 +87,8 @@ client_.SetUrl(orthancUrl_ + "/instances"); // Copy the DICOM file in the POST body. TODO - Avoid memory copy - client_.AccessPostData().resize(size); - memcpy(&client_.AccessPostData()[0], dicom, size); + client_.AccessPostData().resize(static_cast<size_t>(size)); + memcpy(&client_.AccessPostData()[0], dicom, static_cast<size_t>(size)); Json::Value v; if (!client_.Apply(v))