From 6d288b63cddb3ea8548807895b3ac8e77baa2f51 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 1 Jul 2018 18:21:03 +0200 Subject: Call lint in travis (and fix long long issue) --- .travis.yml | 1 + src/file_util.cc | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d6a947810..b16e094c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,3 +49,4 @@ script: - $BUILD_PATH/mock_runtime_test - $BUILD_PATH/mock_main foo bar - $BUILD_PATH/deno meow + - ./tools/lint.sh 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 // All rights reserved. MIT License. +#include #include #include #include @@ -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(data_.size())); + snprintf(buffer, sizeof(buffer), + "static const int %s_blob_size = %" PRId64 ";\n", name_, + static_cast(data_.size())); file_ << buffer; snprintf(buffer, sizeof(buffer), "static v8::StartupData %s_blob =\n", name_); -- cgit v1.2.3