Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbrodsky committed Feb 28, 2024
1 parent 3edd8b5 commit cda07b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/h3_regions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ static size_t readNumber(const std::string &str, size_t offset, double &num) {
offset++;
}
std::string part = str.substr(start, offset - start);
try {

try {
num = std::stod(part);
return offset;
} catch (std::invalid_argument const& ex) {
} catch (std::invalid_argument const &ex) {
throw InvalidInputException(StringUtil::Format("Invalid number around %lu, %lu", start, offset));
}
}
}

static size_t readGeoLoop(const std::string &str, size_t offset, duckdb::shared_ptr<std::vector<LatLng>> verts,
Expand Down
3 changes: 2 additions & 1 deletion src/h3ext_extension.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#define DUCKDB_EXTENSION_MAIN
#include "h3ext_extension.hpp"

#include "duckdb/catalog/catalog_entry/macro_catalog_entry.hpp"
#include "duckdb/catalog/default/default_functions.hpp"
#include "duckdb/common/string_util.hpp"
#include "duckdb/parser/expression/constant_expression.hpp"
#include "duckdb/parser/expression/function_expression.hpp"
#include "duckdb/parser/tableref/table_function_ref.hpp"
#include "h3_functions.hpp"
#include "h3ext_extension.hpp"

namespace duckdb {

Expand Down

0 comments on commit cda07b3

Please sign in to comment.