From 588f2ef2f51d7bdf209820bfb244034863601939 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 25 Oct 2009 04:35:19 -0400 Subject: Fixed many compiler warnings from g++ 4.4 --- src/value.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 62943e62..f6194c86 100644 --- a/src/value.h +++ b/src/value.h @@ -733,6 +733,7 @@ public: * exception is thrown. */ bool to_boolean() const; + int to_int() const; long to_long() const; datetime_t to_datetime() const; date_t to_date() const; @@ -788,7 +789,7 @@ public: /** * Collection-style access methods for SEQUENCE values. */ - value_t& operator[](const int index) { + value_t& operator[](const std::size_t index) { VERIFY(! is_null()); if (is_sequence()) return as_sequence_lval()[index]; @@ -799,7 +800,7 @@ public: static value_t null; return null; } - const value_t& operator[](const int index) const { + const value_t& operator[](const std::size_t index) const { VERIFY(! is_null()); if (is_sequence()) return as_sequence()[index]; -- cgit v1.2.3