Fiddling with ARP to handle routing
[tpg/acess2.git] / Modules / Filesystems / Ext2 / ext2.c
index aa15e10..4a2aece 100644 (file)
@@ -323,7 +323,7 @@ void Ext2_int_UpdateSuperblock(tExt2_Disk *Disk)
        #define INT_MAX (((long long int)1<<(sizeof(int)*8))-1)\r
        \r
        // Powers of 3\r
-       for( i = 3; i < ngrp && i < INT_MAX; i *= 3 )\r
+       for( i = 3; i < ngrp && i < INT_MAX/3; i *= 3 )\r
                VFS_WriteAt(Disk->FD, i*bpg*Disk->BlockSize, 1024, &Disk->SuperBlock);\r
        \r
        // Powers of 5\r

UCC git Repository :: git.ucc.asn.au