commit | ad71c6d9431b4b38cabf5a82569a85b28b33dcdd | [log] [tgz] |
---|---|---|
author | Scott Graham <scottmg@google.com> | Mon Feb 11 10:15:39 2019 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Mon Feb 11 19:09:01 2019 +0000 |
tree | 28adb977f0805728a4acc1ff4cb11c7942223a42 | |
parent | da34187bc31f05c7d02def3162e0d15587cf3b22 [diff] |
[gn][minfs] Add static_cast to silence shortening warning The upcoming gn build is less lenient and says: ../system/ulib/minfs/vnode.cpp:1237:22: warning: implicit conversion loses integer precision: 'unsigned long' to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32] uint32_t n = off / kMinfsBlockSize; ~ ~~~~^~~~~~~~~~~~~~~~~ This seems like an intentional shortening to u32, so explicitly cast. ZX-3415 #comment [gn][minfs] Add static_cast to silence shortening warning Test: CQ Change-Id: I3d595e9fd79a09907bc83499c1b4190d10d49476
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.