Skip to content

Commit

Permalink
fix: double promotion in kvector test
Browse files Browse the repository at this point in the history
  • Loading branch information
mookums committed Nov 29, 2023
1 parent 1e49367 commit e36e1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/kvector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TEST_CASE("Kvector full database stuff", "[kvector]") {
long lastNumReturnedPairs = 999999;
for (decimal i = DECIMAL(1.1); i < DECIMAL(1.99); i += DECIMAL(0.1)) {
const int16_t *end;
const int16_t *pairs = db.FindPairsExact(catalog, i * DECIMAL_M_PI/DECIMAL(180.0), DECIMAL(2.0) * M_PI/DECIMAL(180.0), &end);
const int16_t *pairs = db.FindPairsExact(catalog, i * DECIMAL_M_PI/DECIMAL(180.0), DECIMAL(2.0) * DECIMAL_M_PI/DECIMAL(180.0), &end);
decimal shortestDistance = INFINITY;
for (const int16_t *pair = pairs; pair != end; pair += 2) {
decimal distance = AngleUnit(catalog[pair[0]].spatial, catalog[pair[1]].spatial);
Expand Down

0 comments on commit e36e1ec

Please sign in to comment.