From 438520c3f4c9f5bff0b0ff9b087dbbb92752c8b3 Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Sat, 10 Aug 2013 12:47:11 +0000 Subject: [PATCH] (svn r25708) -Fix: don't return NULL as bool --- src/textbuf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textbuf.cpp b/src/textbuf.cpp index 445ebe59d3..766396fc66 100644 --- a/src/textbuf.cpp +++ b/src/textbuf.cpp @@ -162,7 +162,7 @@ bool Textbuf::InsertString(const char *str, bool marked, const char *caret, cons uint16 insertpos = (marked && this->marklength != 0) ? this->markpos : this->caretpos; if (insert_location != NULL) { insertpos = insert_location - this->buf; - if (insertpos > this->bytes) return NULL; + if (insertpos > this->bytes) return false; if (replacement_end != NULL) { this->DeleteText(insertpos, replacement_end - this->buf, str == NULL);