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
1cbf940e
Commit
1cbf940e
authored
May 22, 2016
by
Davis King
Browse files
Fixed a bug I introduced a minute ago.
parent
f1896128
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dlib/dnn/core.h
dlib/dnn/core.h
+1
-1
dlib/dnn/core_abstract.h
dlib/dnn/core_abstract.h
+1
-1
No files found.
dlib/dnn/core.h
View file @
1cbf940e
...
@@ -490,7 +490,7 @@ namespace dlib
...
@@ -490,7 +490,7 @@ namespace dlib
sstack
pop
(
size_t
num
=
1
)
sstack
pop
(
size_t
num
=
1
)
{
{
DLIB_CASSERT
(
num
<
size
(),
"You can't pop more things from the stack than it has in it."
);
DLIB_CASSERT
(
num
<
=
size
(),
"You can't pop more things from the stack than it has in it."
);
return
sstack
(
data
+
num
,
mysize
-
num
);
return
sstack
(
data
+
num
,
mysize
-
num
);
}
}
...
...
dlib/dnn/core_abstract.h
View file @
1cbf940e
...
@@ -178,7 +178,7 @@ namespace dlib
...
@@ -178,7 +178,7 @@ namespace dlib
);
);
/*!
/*!
requires
requires
- num < size()
- num <
=
size()
ensures
ensures
- returns a reference to the sub-stack S such that:
- returns a reference to the sub-stack S such that:
- S.size() == size()-num.
- S.size() == size()-num.
...
...
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