diff --git a/src/HttpRouter.h b/src/HttpRouter.h index 0353110..dd62269 100644 --- a/src/HttpRouter.h +++ b/src/HttpRouter.h @@ -217,7 +217,7 @@ public: } /* Adds the corresponding entires in matching tree and handler list */ - void add(std::vector methods, std::string pattern, fu2::unique_function &&handler, int priority = MEDIUM_PRIORITY) { + void add(std::vector methods, std::string pattern, fu2::unique_function &&handler, uint32_t priority = MEDIUM_PRIORITY) { for (std::string method : methods) { /* Lookup method */ Node *node = getNode(&root, method, false);