Unverified Commit 3de20385 authored by Chao Ma's avatar Chao Ma Committed by GitHub
Browse files

Change size_t to int

To fix the compiler error on Mac OSX:

/dgl/src/c_api_common.cc:27:16: error: conversion from 'tvm::runtime::TVMArgValue' to 'size_t' (aka 'unsigned long') is ambiguous
        size_t which = args[0];
parent 70d47581
......@@ -24,7 +24,7 @@ DLManagedTensor* CreateTmpDLManagedTensor(const TVMArgValue& arg) {
PackedFunc ConvertNDArrayVectorToPackedFunc(const std::vector<NDArray>& vec) {
auto body = [vec](TVMArgs args, TVMRetValue* rv) {
size_t which = args[0];
int which = args[0];
if (which >= vec.size()) {
LOG(FATAL) << "invalid choice";
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment