diff options
author | jofret | 2010-06-21 13:17:15 +0000 |
---|---|---|
committer | jofret | 2010-06-21 13:17:15 +0000 |
commit | 2f2fd35793c9c84711c709d6e8f18eda7c485844 (patch) | |
tree | dff996c52e0384510ec2b84eb226cce8da06f54e /src/c/operations/interfaces/int_OpIns.h | |
parent | 95acfb6c3844b2b42cd051bd3ee97d750f2accfa (diff) | |
download | scilab2c-2f2fd35793c9c84711c709d6e8f18eda7c485844.tar.gz scilab2c-2f2fd35793c9c84711c709d6e8f18eda7c485844.tar.bz2 scilab2c-2f2fd35793c9c84711c709d6e8f18eda7c485844.zip |
Manage Hypermatrix extraction
Diffstat (limited to 'src/c/operations/interfaces/int_OpIns.h')
-rw-r--r-- | src/c/operations/interfaces/int_OpIns.h | 4 |
1 files changed, 2 insertions, 2 deletions
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__ */ |