From c9aa73af1f001a5f989e63e6a6d2c8b1505d943b Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 22 Jan 2011 18:28:56 +0000 Subject: [PATCH] signed/unsigned problem. git-svn-id: svn://qnap.local/TwoTerm/trunk@2006 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 --- cpp/Screen.cpp | 4 ++-- cpp/Screen.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/Screen.cpp b/cpp/Screen.cpp index d6d41fc..cf6f0c6 100644 --- a/cpp/Screen.cpp +++ b/cpp/Screen.cpp @@ -750,7 +750,7 @@ void Screen::insertLine(unsigned line) // line is relative to the textView. // textView has been constrained. -void Screen::insertLine(TextPort *textPort, unsigned line) +void Screen::insertLine(TextPort *textPort, int line) { CharInfo ci; @@ -815,7 +815,7 @@ void Screen::deleteLine(unsigned line) } -void Screen::deleteLine(TextPort *textPort, unsigned line) +void Screen::deleteLine(TextPort *textPort, int line) { CharInfo ci; diff --git a/cpp/Screen.h b/cpp/Screen.h index 4068b4e..2d1b820 100644 --- a/cpp/Screen.h +++ b/cpp/Screen.h @@ -166,8 +166,8 @@ public: void deleteLine(unsigned line); void insertLine(unsigned line); - void insertLine(TextPort *textPort, unsigned line); - void deleteLine(TextPort *textPort, unsigned line); + void insertLine(TextPort *textPort, int line); + void deleteLine(TextPort *textPort, int line); void beginUpdate();