diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-01 18:21:03 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-02 09:09:23 +0200 |
commit | 6d288b63cddb3ea8548807895b3ac8e77baa2f51 (patch) | |
tree | 1271ab4a1e12eb02a5297a3c0a6b7c8f7a5fb9e8 /src/file_util.cc | |
parent | 235e5490357e977fe6c40a203d9ecadd744f881c (diff) |
Call lint in travis (and fix long long issue)
Diffstat (limited to 'src/file_util.cc')
-rw-r--r-- | src/file_util.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/file_util.cc b/src/file_util.cc index 20711bae7..1c97f400e 100644 --- a/src/file_util.cc +++ b/src/file_util.cc @@ -1,5 +1,6 @@ // Copyright 2018 Ryan Dahl <ry@tinyclouds.org> // All rights reserved. MIT License. +#include <inttypes.h> #include <stdio.h> #include <fstream> #include <iterator> @@ -77,8 +78,9 @@ class StartupDataCppWriter { file_ << buffer; WriteBinaryContentsAsCArray(); file_ << "};\n"; - snprintf(buffer, sizeof(buffer), "static const int %s_blob_size = %llu;\n", - name_, static_cast<unsigned long long>(data_.size())); + snprintf(buffer, sizeof(buffer), + "static const int %s_blob_size = %" PRId64 ";\n", name_, + static_cast<uint64_t>(data_.size())); file_ << buffer; snprintf(buffer, sizeof(buffer), "static v8::StartupData %s_blob =\n", name_); |