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
419eebc8
Commit
419eebc8
authored
Dec 27, 2011
by
Davis King
Browse files
Changed to avoid compiler error in visual studio 2005
parent
e4cd58aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dlib/lsh/create_random_projection_hash.h
dlib/lsh/create_random_projection_hash.h
+1
-1
dlib/lsh/projection_hash.h
dlib/lsh/projection_hash.h
+1
-1
No files found.
dlib/lsh/create_random_projection_hash.h
View file @
419eebc8
...
@@ -75,7 +75,7 @@ namespace dlib
...
@@ -75,7 +75,7 @@ namespace dlib
// figure out what the offset values should be
// figure out what the offset values should be
for
(
int
itr
=
0
;
itr
<
offset
.
size
();
++
itr
)
for
(
int
itr
=
0
;
itr
<
offset
.
size
();
++
itr
)
{
{
counts
.
assign
(
std
::
pow
(
2
,
bits
),
0
);
counts
.
assign
(
std
::
pow
(
2
.0
,
bits
),
0
);
// count the popularity of each hash value
// count the popularity of each hash value
for
(
unsigned
long
i
=
0
;
i
<
h
.
size
();
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
h
.
size
();
++
i
)
{
{
...
...
dlib/lsh/projection_hash.h
View file @
419eebc8
...
@@ -44,7 +44,7 @@ namespace dlib
...
@@ -44,7 +44,7 @@ namespace dlib
unsigned
long
num_hash_bins
(
unsigned
long
num_hash_bins
(
)
const
)
const
{
{
return
static_cast
<
unsigned
long
>
(
std
::
pow
(
2
,
offset
.
size
()));
return
static_cast
<
unsigned
long
>
(
std
::
pow
(
2
.0
,
offset
.
size
()));
}
}
template
<
typename
EXP
>
template
<
typename
EXP
>
...
...
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