1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

Call lint in travis (and fix long long issue)

This commit is contained in:
Ryan Dahl 2018-07-01 18:21:03 +02:00
parent 235e549035
commit 6d288b63cd
2 changed files with 5 additions and 2 deletions

View file

@ -49,3 +49,4 @@ script:
- $BUILD_PATH/mock_runtime_test - $BUILD_PATH/mock_runtime_test
- $BUILD_PATH/mock_main foo bar - $BUILD_PATH/mock_main foo bar
- $BUILD_PATH/deno meow - $BUILD_PATH/deno meow
- ./tools/lint.sh

View file

@ -1,5 +1,6 @@
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org> // Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
// All rights reserved. MIT License. // All rights reserved. MIT License.
#include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include <fstream> #include <fstream>
#include <iterator> #include <iterator>
@ -77,8 +78,9 @@ class StartupDataCppWriter {
file_ << buffer; file_ << buffer;
WriteBinaryContentsAsCArray(); WriteBinaryContentsAsCArray();
file_ << "};\n"; file_ << "};\n";
snprintf(buffer, sizeof(buffer), "static const int %s_blob_size = %llu;\n", snprintf(buffer, sizeof(buffer),
name_, static_cast<unsigned long long>(data_.size())); "static const int %s_blob_size = %" PRId64 ";\n", name_,
static_cast<uint64_t>(data_.size()));
file_ << buffer; file_ << buffer;
snprintf(buffer, sizeof(buffer), "static v8::StartupData %s_blob =\n", snprintf(buffer, sizeof(buffer), "static v8::StartupData %s_blob =\n",
name_); name_);