]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/ChainWalkSet.cpp
add 2011 (C)
[freerainbowtables] / Client Applications / rcracki_mt / ChainWalkSet.cpp
index 488280ad9862450d6519f158556133256656b61d..91f30212c4e828f84db72697b8689f71ef441c70 100644 (file)
@@ -5,9 +5,9 @@
  * Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>\r
  * Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>\r
  * Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>\r
- * Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
+ * Copyright 2009, 2010, 2011 James Nobis <frt@quelrod.net>\r
  *\r
- * This file is part of racrcki_mt.\r
+ * This file is part of rcracki_mt.\r
  *\r
  * rcracki_mt is free software: you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
@@ -23,7 +23,7 @@
  * along with rcracki_mt.  If not, see <http://www.gnu.org/licenses/>.\r
  */\r
 \r
-#ifdef _WIN32\r
+#if defined(_WIN32) && !defined(__GNUC__)\r
        #pragma warning(disable : 4786)\r
 #endif\r
 \r
@@ -67,7 +67,7 @@ string CChainWalkSet::CheckOrRotatePreCalcFile()
                sprintf(sPreCalcFileName, "%s.%d", sPrecalcPathName.c_str(), preCalcPart);\r
                string sReturnPreCalcPath(sPreCalcFileName);\r
 \r
-               unsigned int fileLen = 0;\r
+               long fileLen = 0;\r
 \r
                FILE* file = fopen(sReturnPreCalcPath.c_str(), "ab");\r
                if(file!=NULL)\r