Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
99af7b9d
Commit
99af7b9d
authored
Dec 05, 2018
by
Davis King
Browse files
Fixed code not compiling.
parent
4b2ef5b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/cuda/cuda_data_ptr.h
dlib/cuda/cuda_data_ptr.h
+1
-1
No files found.
dlib/cuda/cuda_data_ptr.h
View file @
99af7b9d
...
@@ -184,7 +184,7 @@ namespace dlib
...
@@ -184,7 +184,7 @@ namespace dlib
)
)
{
{
if
(
src
.
size
()
!=
dest
.
size
())
if
(
src
.
size
()
!=
dest
.
size
())
src
=
cuda_data_ptr
<
T
>
(
dest
.
size
());
dest
=
cuda_data_ptr
<
T
>
(
dest
.
size
());
if
(
dest
.
size
()
!=
0
)
if
(
dest
.
size
()
!=
0
)
memcpy
(
dest
.
pdata
,
src
.
data
());
memcpy
(
dest
.
pdata
,
src
.
data
());
...
...
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