Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
orbital
Commits
1abd7fff
Verified
Commit
1abd7fff
authored
Dec 13, 2018
by
Jeremy Soller
Browse files
Missing unsafe
parent
69d34a82
Pipeline
#2229
passed with stage
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
orbital-core/src/image.rs
View file @
1abd7fff
...
...
@@ -100,7 +100,9 @@ impl<'a> ImageRoi<'a> {
pub
fn
blit
(
&
'a
mut
self
,
other
:
&
ImageRoi
)
{
for
(
self_row
,
other_row
)
in
self
.rows_mut
()
.zip
(
other
.rows
())
{
let
len
=
cmp
::
min
(
self_row
.len
(),
other_row
.len
());
ptr
::
copy
(
other_row
.as_ptr
(),
self_row
.as_mut_ptr
(),
len
);
unsafe
{
ptr
::
copy
(
other_row
.as_ptr
(),
self_row
.as_mut_ptr
(),
len
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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