From bd56ba8f7a18d54b0ef650761b3528b30a45b6ee Mon Sep 17 00:00:00 2001 From: mrks Date: Sat, 17 Nov 2018 12:10:39 +0100 Subject: [PATCH] Fix type inconsistency (#106) --- src/SQLParserResult.cpp | 4 ++-- src/SQLParserResult.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SQLParserResult.cpp b/src/SQLParserResult.cpp index 47a5300..1af1c52 100644 --- a/src/SQLParserResult.cpp +++ b/src/SQLParserResult.cpp @@ -32,11 +32,11 @@ namespace hsql { statements_.push_back(stmt); } - const SQLStatement* SQLParserResult::getStatement(int index) const { + const SQLStatement* SQLParserResult::getStatement(size_t index) const { return statements_[index]; } - SQLStatement* SQLParserResult::getMutableStatement(int index) { + SQLStatement* SQLParserResult::getMutableStatement(size_t index) { return statements_[index]; } diff --git a/src/SQLParserResult.h b/src/SQLParserResult.h index 939aa3d..1e903aa 100644 --- a/src/SQLParserResult.h +++ b/src/SQLParserResult.h @@ -48,10 +48,10 @@ namespace hsql { void addStatement(SQLStatement* stmt); // Gets the SQL statement with the given index. - const SQLStatement* getStatement(int index) const; + const SQLStatement* getStatement(size_t index) const; // Gets the non const SQL statement with the given index. - SQLStatement* getMutableStatement(int index); + SQLStatement* getMutableStatement(size_t index); // Get the list of all statements. const std::vector& getStatements() const;