From 8ad9ced99b2a3ba43ede6d780f5ba55153821092 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Wed, 26 Jul 2017 10:08:38 -0700 Subject: [PATCH] Fix task ID hash computation. (#774) --- src/common/task.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/task.cc b/src/common/task.cc index 1f3a1e5fb..dcf4a7520 100644 --- a/src/common/task.cc +++ b/src/common/task.cc @@ -68,7 +68,7 @@ class TaskBuilder { auto arg = fbb.CreateString((const char *) value, length); auto empty_id = fbb.CreateString("", 0); args.push_back(CreateArg(fbb, empty_id, arg)); - sha256_update(&ctx, (BYTE *) &value, length); + sha256_update(&ctx, (BYTE *) value, length); } void SetRequiredResource(int64_t resource_index, double value) {