Commit 44df577810d53fa865dfa689f99c934b23365038
1 parent
bd736b99
removed Janus use of C++11 feature. fixed #178
Showing
2 changed files
with
2 additions
and
2 deletions
openbr/janus.cpp
| @@ -120,7 +120,7 @@ janus_error janus_verify(const janus_flat_template a, const size_t a_bytes, cons | @@ -120,7 +120,7 @@ janus_error janus_verify(const janus_flat_template a, const size_t a_bytes, cons | ||
| 120 | return JANUS_UNKNOWN_ERROR; | 120 | return JANUS_UNKNOWN_ERROR; |
| 121 | 121 | ||
| 122 | if (comparisons > 0) *similarity /= comparisons; | 122 | if (comparisons > 0) *similarity /= comparisons; |
| 123 | - else *similarity = std::numeric_limits<double>::lowest(); | 123 | + else *similarity = -std::numeric_limits<double>::max(); |
| 124 | return JANUS_SUCCESS; | 124 | return JANUS_SUCCESS; |
| 125 | } | 125 | } |
| 126 | 126 |