[gn][fvm-host] Fix some warnings in container/fvm.cpp

[4389->5477/9923 ~58] CXX host-x64-linux-clang/obj/system/ulib/fvm-host/container/libfvm-host.fvm.cpp.o
../system/ulib/fvm-host/container/fvm.cpp:249:15: warning: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
        if (r != slice_size_) {
            ~ ^  ~~~~~~~~~~~
../system/ulib/fvm-host/container/fvm.cpp:260:15: warning: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
        if (r != slice_size_) {
            ~ ^  ~~~~~~~~~~~
../system/ulib/fvm-host/container/fvm.cpp:398:52: warning: implicit conversion loses integer precision: 'unsigned long' to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
        uint32_t vslice = vslice_info.vslice_start / format->BlocksPerSlice();
                 ~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../system/ulib/fvm-host/container/fvm.cpp:540:11: warning: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
    if (r != block_size) {
        ~ ^  ~~~~~~~~~~
4 warnings generated.

ZX-3415 #comment [gn][fvm-host] Fix some warnings in container/fvm.cpp

Test: CQ
Change-Id: Ia43d3a8bd3ccc2158b07e9f64146d9699bcba280
2 files changed
tree: 79c2e78a22cbdca73d7f9e33111d1291396869ec
  1. boards/
  2. build/
  3. buildtools/
  4. bundles/
  5. docs/
  6. garnet/
  7. peridot/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. zircon/
  13. .clang-format
  14. .dir-locals.el
  15. .gitattributes
  16. .gitignore
  17. .gn
  18. AUTHORS
  19. CODE_OF_CONDUCT.md
  20. CONTRIBUTING.md
  21. LICENSE
  22. OWNERS
  23. PATENTS
  24. README.md
  25. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

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.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See the documentation.