From f0f696eee5c7191af07d1db40ae66545db0a6a79 Mon Sep 17 00:00:00 2001
From: Siju Samuel <sijusamuel@gmail.com>
Date: Tue, 23 Jan 2018 09:35:30 +0530
Subject: [PATCH] [Compilation Warning Fix] comparison between signed and
 unsigned integer expressions (#807)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The compilation warning is fixed.
src/runtime/graph/graph_runtime.cc:392:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   CHECK(data_byte_size == size)
         ~~~~~~~~~~~~~~~^~~~
/mnt/D_DRIVE/work/nnvm_22_Jan/nnvm_latest/tvm/dmlc-core/include/dmlc/logging.h:109:9: note: in definition of macro ‘CHECK’
   if (!(x))                                                \
         ^
---
 src/runtime/graph/graph_runtime.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runtime/graph/graph_runtime.cc b/src/runtime/graph/graph_runtime.cc
index ed833d408..d244fe5f0 100644
--- a/src/runtime/graph/graph_runtime.cc
+++ b/src/runtime/graph/graph_runtime.cc
@@ -386,7 +386,7 @@ void GraphRuntime::LoadDLTensor(dmlc::Stream* strm, DLTensor* dst) {
   for (int i = 0; i < dst->ndim; ++i) {
     size *= dst->shape[i];
   }
-  int64_t data_byte_size;
+  uint64_t data_byte_size;
   CHECK(strm->Read(&data_byte_size, sizeof(data_byte_size)))
       << "Invalid DLTensor file format";
   CHECK(data_byte_size == size)
-- 
GitLab