changeset 299:f13eef8ce651

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Dec 2012 10:19:51 +0100
parents 6c4f6229aad7
children 87e09002576f
files OrthancServer/OrthancRestApi.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Mon Dec 17 10:06:45 2012 +0100
+++ b/OrthancServer/OrthancRestApi.cpp	Mon Dec 17 10:19:51 2012 +0100
@@ -466,7 +466,7 @@
     switch (resourceType)
     {
       case ResourceType_Patient:
-        for (size_t i = 0; i < resource["Studies"].size(); i++)
+        for (Json::Value::ArrayIndex i = 0; i < resource["Studies"].size(); i++)
         {
           std::string studyId = resource["Studies"][i].asString();
           if (!ArchiveInternal(writer, context, studyId, ResourceType_Study, false))
@@ -477,7 +477,7 @@
         break;
 
       case ResourceType_Study:
-        for (size_t i = 0; i < resource["Series"].size(); i++)
+        for (Json::Value::ArrayIndex i = 0; i < resource["Series"].size(); i++)
         {
           std::string seriesId = resource["Series"][i].asString();
           if (!ArchiveInternal(writer, context, seriesId, ResourceType_Series, false))
@@ -488,7 +488,7 @@
         break;
 
       case ResourceType_Series:
-        for (size_t i = 0; i < resource["Instances"].size(); i++)
+        for (Json::Value::ArrayIndex i = 0; i < resource["Instances"].size(); i++)
         {
           if (!ArchiveInstance(writer, context, resource["Instances"][i].asString()))
           {