From: <ave...@us...> - 2008-09-25 18:05:51
|
Revision: 5361 http://gemrb.svn.sourceforge.net/gemrb/?rev=5361&view=rev Author: avenger_teambg Date: 2008-09-25 18:05:48 +0000 (Thu, 25 Sep 2008) Log Message: ----------- msvc 6 compatibility fix Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/TextArea.cpp Modified: gemrb/trunk/gemrb/plugins/Core/TextArea.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/TextArea.cpp 2008-09-25 11:57:36 UTC (rev 5360) +++ gemrb/trunk/gemrb/plugins/Core/TextArea.cpp 2008-09-25 18:05:48 UTC (rev 5361) @@ -520,6 +520,7 @@ void TextArea::OnSpecialKeyPress(unsigned char Key) { int len; + int i; if (!(Flags&IE_GUI_TEXTAREA_EDITABLE)) { return; @@ -574,7 +575,7 @@ break; } lines[CurLine] = (char *) realloc( lines[CurLine], len ); - for (int i = CurPos; i < len; i++) { + for (i = CurPos; i < len; i++) { lines[CurLine][i] = lines[CurLine][i + 1]; } //printf("pos: %d After: %s\n",CurPos, lines[CurLine]); @@ -587,7 +588,7 @@ break; } lines[CurLine] = (char *) realloc( lines[CurLine], len ); - for (int i = CurPos; i < len; i++) { + for (i = CurPos; i < len; i++) { lines[CurLine][i - 1] = lines[CurLine][i]; } lines[CurLine][len - 1] = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |