[opencv] 53/71: fixed http://code.opencv.org/issues/4278
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Mon Oct 17 20:16:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 2.4.13.1
in repository opencv.
commit 726efee4d2a4b4f075a9e37fca445b800186fddb
Author: Rostislav Vasilikhin <rostislav.vasilikhin at intel.com>
Date: Sat Sep 3 20:28:54 2016 +0300
fixed http://code.opencv.org/issues/4278
---
modules/core/src/matmul.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/core/src/matmul.cpp b/modules/core/src/matmul.cpp
index d537b7d..4be9c4d 100644
--- a/modules/core/src/matmul.cpp
+++ b/modules/core/src/matmul.cpp
@@ -1013,7 +1013,7 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
GEMMBlockMulFunc blockMulFunc;
GEMMStoreFunc storeFunc;
Mat *matD = &D, tmat;
- int tmat_size = 0;
+ size_t tmat_size = 0;
const uchar* Cdata = C.data;
size_t Cstep = C.data ? (size_t)C.step : 0;
AutoBuffer<uchar> buf;
@@ -1046,7 +1046,7 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
if( D.data == A.data || D.data == B.data )
{
- tmat_size = d_size.width*d_size.height*CV_ELEM_SIZE(type);
+ tmat_size = (size_t)d_size.width*d_size.height*CV_ELEM_SIZE(type);
// Allocate tmat later, once the size of buf is known
matD = &tmat;
}
@@ -1137,7 +1137,7 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
int is_b_t = flags & GEMM_2_T;
int elem_size = CV_ELEM_SIZE(type);
int dk0_1, dk0_2;
- int a_buf_size = 0, b_buf_size, d_buf_size;
+ size_t a_buf_size = 0, b_buf_size, d_buf_size;
uchar* a_buf = 0;
uchar* b_buf = 0;
uchar* d_buf = 0;
@@ -1178,8 +1178,8 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
dn0 = block_size / dk0;
dk0_1 = (dn0+dn0/8+2) & -2;
- b_buf_size = (dk0+dk0/8+1)*dk0_1*elem_size;
- d_buf_size = (dk0+dk0/8+1)*dk0_1*work_elem_size;
+ b_buf_size = (size_t)(dk0+dk0/8+1)*dk0_1*elem_size;
+ d_buf_size = (size_t)(dk0+dk0/8+1)*dk0_1*work_elem_size;
if( is_a_t )
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list