Explorar el Código

server : fix bad fmt, size() is a size_type (#17735)

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
Adrien Gallouët hace 1 mes
padre
commit
1257491047
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/server/server-common.cpp

+ 1 - 1
tools/server/server-common.cpp

@@ -791,7 +791,7 @@ static void handle_media(
         SRV_INF("downloading image from '%s'\n", url.c_str());
         SRV_INF("downloading image from '%s'\n", url.c_str());
         auto res = common_remote_get_content(url, params);
         auto res = common_remote_get_content(url, params);
         if (200 <= res.first && res.first < 300) {
         if (200 <= res.first && res.first < 300) {
-            SRV_INF("downloaded %ld bytes\n", res.second.size());
+            SRV_INF("downloaded %zu bytes\n", res.second.size());
             raw_buffer data;
             raw_buffer data;
             data.insert(data.end(), res.second.begin(), res.second.end());
             data.insert(data.end(), res.second.begin(), res.second.end());
             out_files.push_back(data);
             out_files.push_back(data);