From 36d8b5bce82bd50ebca79ac59039ab2a5da4dd2f Mon Sep 17 00:00:00 2001 From: zp7 <9678873+ForceDaryl@users.noreply.github.com> Date: Wed, 9 Oct 2019 15:02:44 +0800 Subject: [PATCH] fix crash in some platform (#2159) --- mobile/src/framework/ddim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/framework/ddim.cpp b/mobile/src/framework/ddim.cpp index 6da08bf88e..4f68caad77 100644 --- a/mobile/src/framework/ddim.cpp +++ b/mobile/src/framework/ddim.cpp @@ -27,7 +27,7 @@ Dim make_dim(const int64_t *d) { template <> Dim<0> make_dim<0>(const int64_t *d) { - return Dim<0>(*d); + return Dim<0>(0); } void make_ddim(DDim &ddim, const int64_t *dims, int n) { -- GitLab