OSDN Git Service

crystaledit: reduce compile warnings
authorsdottaka <sdottaka@users.sourceforge.net>
Sat, 16 May 2015 11:18:06 +0000 (20:18 +0900)
committersdottaka <sdottaka@users.sourceforge.net>
Sat, 16 May 2015 11:18:06 +0000 (20:18 +0900)
--HG--
branch : stable

32 files changed:
Externals/crystaledit/editlib/asp.cpp
Externals/crystaledit/editlib/basic.cpp
Externals/crystaledit/editlib/batch.cpp
Externals/crystaledit/editlib/cplusplus.cpp
Externals/crystaledit/editlib/csharp.cpp
Externals/crystaledit/editlib/css.cpp
Externals/crystaledit/editlib/dcl.cpp
Externals/crystaledit/editlib/fortran.cpp
Externals/crystaledit/editlib/html.cpp
Externals/crystaledit/editlib/ini.cpp
Externals/crystaledit/editlib/innosetup.cpp
Externals/crystaledit/editlib/is.cpp
Externals/crystaledit/editlib/java.cpp
Externals/crystaledit/editlib/lisp.cpp
Externals/crystaledit/editlib/nsis.cpp
Externals/crystaledit/editlib/pascal.cpp
Externals/crystaledit/editlib/perl.cpp
Externals/crystaledit/editlib/php.cpp
Externals/crystaledit/editlib/po.cpp
Externals/crystaledit/editlib/powershell.cpp
Externals/crystaledit/editlib/python.cpp
Externals/crystaledit/editlib/rexx.cpp
Externals/crystaledit/editlib/rsrc.cpp
Externals/crystaledit/editlib/ruby.cpp
Externals/crystaledit/editlib/sgml.cpp
Externals/crystaledit/editlib/sh.cpp
Externals/crystaledit/editlib/siod.cpp
Externals/crystaledit/editlib/sql.cpp
Externals/crystaledit/editlib/tcl.cpp
Externals/crystaledit/editlib/tex.cpp
Externals/crystaledit/editlib/verilog.cpp
Externals/crystaledit/editlib/xml.cpp

index 0f8ed44..a64426e 100644 (file)
@@ -600,7 +600,7 @@ ParseLineAsp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 501ba0b..61da5a4 100644 (file)
@@ -374,7 +374,7 @@ ParseLineBasic (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIt
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index ceeea2b..31ba743 100644 (file)
@@ -746,7 +746,7 @@ ParseLineBatch (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIt
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index d4ea9fe..3094762 100644 (file)
@@ -291,7 +291,7 @@ ParseLineC (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 5e779f2..97cb5b9 100644 (file)
@@ -184,7 +184,7 @@ ParseLineCSharp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualI
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 43f6255..c57733d 100644 (file)
@@ -239,7 +239,7 @@ ParseLineCss (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 6acc2fd..58b2736 100644 (file)
@@ -184,7 +184,7 @@ ParseLineDcl (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 30364aa..0c1bda4 100644 (file)
@@ -300,7 +300,7 @@ ParseLineFortran (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActual
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index cb8c5b3..faf958a 100644 (file)
@@ -431,7 +431,7 @@ ParseLineHtml (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 17c14c9..148b60c 100644 (file)
@@ -87,7 +87,7 @@ ParseLineIni (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index eea804f..f640474 100644 (file)
@@ -387,7 +387,7 @@ ParseLineInnoSetup (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActu
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index beaf442..350782b 100644 (file)
@@ -491,7 +491,7 @@ ParseLineIS (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 28d9da9..4ae32a5 100644 (file)
@@ -146,7 +146,7 @@ ParseLineJava (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index ca4f178..6f69d9f 100644 (file)
@@ -323,7 +323,7 @@ ParseLineLisp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
 
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 62d4b41..73508ed 100644 (file)
@@ -496,7 +496,7 @@ ParseLineNsis (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index c418695..ae8e31c 100644 (file)
@@ -174,7 +174,7 @@ ParseLinePascal (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualI
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 68e9fcb..990a45a 100644 (file)
@@ -317,7 +317,7 @@ ParseLinePerl (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 6ad2297..e4be390 100644 (file)
@@ -519,7 +519,7 @@ ParseLinePhp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 56cef12..ba86e1c 100644 (file)
@@ -95,7 +95,7 @@ ParseLinePo (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 87469e1..c323481 100644 (file)
@@ -403,7 +403,7 @@ ParseLinePowerShell (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nAct
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index cc9a005..0c97a2f 100644 (file)
@@ -242,7 +242,7 @@ ParseLinePython (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualI
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index e1bfd1e..3621ae6 100644 (file)
@@ -173,7 +173,7 @@ ParseLineRexx (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index f72e7c0..f9e6fc9 100644 (file)
@@ -237,7 +237,7 @@ ParseLineRsrc (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 941291b..7ef6915 100644 (file)
@@ -204,7 +204,7 @@ ParseLineRuby(DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index ed24a58..8cb8b94 100644 (file)
@@ -275,7 +275,7 @@ ParseLineSgml (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 07d44dd..a2aa5b2 100644 (file)
@@ -141,7 +141,7 @@ ParseLineSh (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 5df39db..f533bfb 100644 (file)
@@ -399,7 +399,7 @@ ParseLineSiod (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualIte
 
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 71f4cf6..1ecb5dd 100644 (file)
@@ -133,7 +133,7 @@ ParseLineSql (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index ae31d55..8edaee7 100644 (file)
@@ -109,7 +109,7 @@ ParseLineTcl (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index ee28222..c1793d6 100644 (file)
@@ -916,7 +916,7 @@ ParseLineTex (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 0c4eee7..fe0a7da 100644 (file)
@@ -367,7 +367,7 @@ ParseLineVerilog (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActual
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {
index 3a3c99d..18a9abc 100644 (file)
@@ -244,7 +244,7 @@ ParseLineXml (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItem
   int nIdentBegin = -1;
   int nPrevI = -1;
   int I=0;
-  for (I = 0;; nPrevI = I, I = ::CharNext(pszChars+I) - pszChars)
+  for (I = 0;; nPrevI = I, I = static_cast<int>(::CharNext(pszChars+I) - pszChars))
     {
       if (I == nPrevI)
         {