From 2f2fd35793c9c84711c709d6e8f18eda7c485844 Mon Sep 17 00:00:00 2001 From: jofret Date: Mon, 21 Jun 2010 13:17:15 +0000 Subject: Manage Hypermatrix extraction --- src/c/operations/interfaces/int_OpIns.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/c/operations/interfaces/int_OpIns.h') diff --git a/src/c/operations/interfaces/int_OpIns.h b/src/c/operations/interfaces/int_OpIns.h index 5d3798da..d15876ba 100644 --- a/src/c/operations/interfaces/int_OpIns.h +++ b/src/c/operations/interfaces/int_OpIns.h @@ -357,8 +357,8 @@ /* a(x,y,z) = b */ #define s3s0s0s0s0OpIns(in, size1, row, col, level, newVal) \ - in[(row - 1) + (col - 1) * size1[0] + (level - 1) * size1[0] * size1[1]] = newVal; + in[(int) ((row - 1) + (col - 1) * size1[0] + (level - 1) * size1[0] * size1[1])] = newVal; #define d3d0d0d0d0OpIns(in, size1, row, col, level, newVal) \ - in[(row - 1) + (col - 1) * size1[0] + (level - 1) * size1[0] * size1[1]] = newVal; + in[(int) ((row - 1) + (col - 1) * size1[0] + (level - 1) * size1[0] * size1[1])] = newVal; #endif /* !__OPINS_H__ */ -- cgit