Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
39baa223
Commit
39baa223
authored
Feb 18, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Feb 18, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #499 from vpisarev:zeroelem_fix
parents
c6f6f9ab
a1c7e036
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
matrix.cpp
modules/core/src/matrix.cpp
+2
-2
No files found.
modules/core/src/matrix.cpp
View file @
39baa223
...
...
@@ -3496,7 +3496,7 @@ enum { HASH_SIZE0 = 8 };
static
inline
void
copyElem
(
const
uchar
*
from
,
uchar
*
to
,
size_t
elemSize
)
{
size_t
i
;
for
(
i
=
0
;
(
int
)
i
<=
(
int
)(
elemSize
-
sizeof
(
int
))
;
i
+=
sizeof
(
int
)
)
for
(
i
=
0
;
i
+
sizeof
(
int
)
<=
elemSize
;
i
+=
sizeof
(
int
)
)
*
(
int
*
)(
to
+
i
)
=
*
(
const
int
*
)(
from
+
i
);
for
(
;
i
<
elemSize
;
i
++
)
to
[
i
]
=
from
[
i
];
...
...
@@ -3505,7 +3505,7 @@ static inline void copyElem(const uchar* from, uchar* to, size_t elemSize)
static
inline
bool
isZeroElem
(
const
uchar
*
data
,
size_t
elemSize
)
{
size_t
i
;
for
(
i
=
0
;
i
<=
elemSize
-
sizeof
(
int
)
;
i
+=
sizeof
(
int
)
)
for
(
i
=
0
;
i
+
sizeof
(
int
)
<=
elemSize
;
i
+=
sizeof
(
int
)
)
if
(
*
(
int
*
)(
data
+
i
)
!=
0
)
return
false
;
for
(
;
i
<
elemSize
;
i
++
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment