403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/textproc/irstlm/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/textproc/irstlm/files/patch-src-mdiadapt.cpp
--- src/mdiadapt.cpp.orig	2012-10-26 22:43:50.000000000 +0400
+++ src/mdiadapt.cpp	2014-09-02 15:33:55.000000000 +0400
@@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fi
 #include <cmath>
 #include <string>
 #include <assert.h>
+#include <vector>
 #include "util.h"
 #include "mfstream.h"
 #include "mempool.h"
@@ -1170,7 +1171,7 @@ int mdiadaptlm::saveBIN_per_word(char *f
   }
 	
 	
-  streampos pos[lmsize()+1];
+  vector<streampos> pos(lmsize()+1);
   int maxlev=lmsize();
   char buff[100];
   int isQuant=0; //savebin for quantized LM is not yet implemented
@@ -1420,7 +1421,7 @@ int mdiadaptlm::saveBIN_per_level(char *
     VERBOSE(2,"savebin: " << filename << "\n");
   }
 
-  streampos pos[lmsize()+1];
+  vector<streampos> pos(lmsize()+1);
   int maxlev=lmsize();
   char buff[100];
   int isQuant=0; //savebin for quantized LM is not yet implemented
@@ -1803,7 +1804,7 @@ int mdiadaptlm::saveARPA_per_level(char 
   fstream out(filename,ios::out);
   //  out.precision(15);
 
-  streampos pos[lmsize()+1];
+  vector<streampos> pos(lmsize()+1); 
   table_entry_pos_t num[lmsize()+1];
   char buff[100];
 

Youez - 2016 - github.com/yon3zu
LinuXploit