From 742fcc6749ce11c12f5e0309c23f36c1350f995b Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@hesge.ch>
Date: Sun, 6 Dec 2020 20:40:41 +0100
Subject: [PATCH] removed warning

---
 src/c_interface/tensor_field.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/c_interface/tensor_field.c b/src/c_interface/tensor_field.c
index c6587e5..0ac8d2d 100644
--- a/src/c_interface/tensor_field.c
+++ b/src/c_interface/tensor_field.c
@@ -66,7 +66,7 @@ void tensor_field_deallocate(tensor_field field) {
 }
 
 void tensor_field_from_futhark_f32_4d_inplace(struct futhark_f32_4d *f, struct futhark_context *ctx, tensor_field field) {
-    int64_t *shape = futhark_shape_f32_4d(ctx, f);
+    const int64_t *shape = futhark_shape_f32_4d(ctx, f);
     fint nx = shape[0];
     fint ny = shape[1];
     fint nz = shape[2];
@@ -99,7 +99,7 @@ void tensor_field_compute_norm_inplace(tensor_field field, scalar_field norm) {
 }
 
 tensor_field tensor_field_from_futhark_f32_4d(struct futhark_f32_4d *f, struct futhark_context *ctx) {
-    int64_t *shape = futhark_shape_f32_4d(ctx, f);
+    const int64_t *shape = futhark_shape_f32_4d(ctx, f);
     fint nx = shape[0];
     fint ny = shape[1];
     fint nz = shape[2];
-- 
GitLab