From 151413d447b9302ee57b5d3276ef73e4b297fdc0 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 19 Jan 2018 22:12:47 -0800 Subject: [PATCH] edits --- version2/src/C/LocalComm.cc | 7 +++++-- version2/src/C/LocalComm.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/version2/src/C/LocalComm.cc b/version2/src/C/LocalComm.cc index 9640277..ac4c343 100644 --- a/version2/src/C/LocalComm.cc +++ b/version2/src/C/LocalComm.cc @@ -1,4 +1,7 @@ #include "LocalComm.h" +#include "Error.h" +#include "Table.h" + Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *data) { printf("Passing Locally\n"); @@ -7,8 +10,8 @@ Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *dat } else if (deviceId == t2->getMachineId()) { // return t2.localCommInput(data); } else { - throw new Error("Cannot send to " + deviceId + " using this local comm"); + throw new Error("Cannot send to deviceId using this local comm"); } - return new char[0]; + return new Array((uint32_t)0); } diff --git a/version2/src/C/LocalComm.h b/version2/src/C/LocalComm.h index 8780dc0..762da17 100644 --- a/version2/src/C/LocalComm.h +++ b/version2/src/C/LocalComm.h @@ -13,6 +13,6 @@ public: t2(_t2) { } - public Array *sendDataToLocalDevice(int64_t deviceId, Array *data); + Array *sendDataToLocalDevice(int64_t deviceId, Array *data); }; #endif -- 2.34.1