@@ -130,7 +130,7 @@ CDiskFile::CDiskFile(CConfigurator *cfg, CSystem *sys, CDiskController *c,
130130
131131 /* If the disk file size was not set and the disk file does not exist, do
132132 * not create it, but exit */
133- int diskFileSize = myCfg->get_num_value (" autocreate_size" , false , 0 );
133+ u64 diskFileSize = myCfg->get_num_value (" autocreate_size" , false , 0 );
134134 if (!diskFileSize) {
135135 FAILURE_1 (Runtime, " %s: file does not exist and no autocreate_size set." ,
136136 devid_string);
@@ -185,14 +185,14 @@ CDiskFile::CDiskFile(CConfigurator *cfg, CSystem *sys, CDiskController *c,
185185 cylinders, heads, sectors);
186186}
187187
188- void CDiskFile::createDiskFile (const std::string &fileName, int diskFileSize) {
189-
188+ void CDiskFile::createDiskFile (const std::string &fileName, u64 diskFileSize) {
190189 std::ofstream ofs (fileName, std::ios::binary);
191190 if (ofs.is_open () && ofs.good ()) {
192191 ofs.seekp ((diskFileSize)-1 );
193192 ofs.write (" " , 1 );
194193 } else {
195- FAILURE_1 (Runtime, " %s: File does not exist and could not be created" , devid_string);
194+ FAILURE_1 (Runtime, " %s: File does not exist and could not be created" ,
195+ devid_string);
196196 }
197197
198198 std::cout << devid_string << " " << (diskFileSize / 1024 / 1024 ) << " MB file "
0 commit comments