From a5f638b4b10a2f79e1f94b3d1e8c271904077cd5 Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@pm.me>
Date: Sun, 14 Feb 2021 15:13:42 +0100
Subject: [PATCH] corrected preproc bug

---
 src/c_interface/tensor_field.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/c_interface/tensor_field.c b/src/c_interface/tensor_field.c
index 2f44fe8..ccef3f7 100644
--- a/src/c_interface/tensor_field.c
+++ b/src/c_interface/tensor_field.c
@@ -82,7 +82,7 @@ void tensor_field_deallocate(tensor_field field) {
 }
 
 void tensor_field_from_futhark_f32_4d_inplace(futhark_4d *f, struct futhark_context *ctx, tensor_field field) {
-#ifdef DEBUG
+#ifndef NDEBUG
     const int64_t *shape = futhark_shape_4d(ctx, f);
     fint nx = shape[0];
     fint ny = shape[1];
-- 
GitLab