diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-02 00:00:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-03 08:42:39 +0200 |
commit | b613817bcaada76f75289129e4987eafdaff6d87 (patch) | |
tree | 51978a2c44f29e0b730773e83d3eb368dd4a597e /Userland/Services/WebServer | |
parent | fdbe66a7b4b3fec0beba0eac8b78bf29841a5e9c (diff) | |
download | serenity-b613817bcaada76f75289129e4987eafdaff6d87.zip |
Userland: Fix 64-bit portability issues
Diffstat (limited to 'Userland/Services/WebServer')
-rw-r--r-- | Userland/Services/WebServer/Client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/WebServer/Client.cpp b/Userland/Services/WebServer/Client.cpp index a26bd251b8..4a24eaf1f8 100644 --- a/Userland/Services/WebServer/Client.cpp +++ b/Userland/Services/WebServer/Client.cpp @@ -17,6 +17,7 @@ #include <LibCore/FileStream.h> #include <LibCore/MimeData.h> #include <LibHTTP/HttpRequest.h> +#include <inttypes.h> #include <stdio.h> #include <sys/stat.h> #include <time.h> @@ -220,7 +221,7 @@ void Client::handle_directory_listing(const String& requested_path, const String builder.append(escape_html_entities(name)); builder.append("</a></td><td> </td>"); - builder.appendf("<td>%10lld</td><td> </td>", st.st_size); + builder.appendf("<td>%10" PRIi64 "</td><td> </td>", st.st_size); builder.append("<td>"); builder.append(Core::DateTime::from_timestamp(st.st_mtime).to_string()); builder.append("</td>"); |