~ubuntu-branches/ubuntu/trusty/gparted/trusty

« back to all changes in this revision

Viewing changes to src/fat16.cc

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2010-06-30 21:37:01 UTC
  • mfrom: (6.3.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100630213701-mb46ic0orpuz7l6m
Tags: 0.6.0-1
* New upstream release 
* Fix out-of-date-standards-version

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        fs .copy = GParted::FS::GPARTED ;
58
58
        
59
59
        fs .MIN = 16 * MEBIBYTE ;
60
 
        fs .MAX = 4096 * MEBIBYTE ;
 
60
        fs .MAX = (4096 - 1) * MEBIBYTE ;  //Maximum seems to be just less than 4096 MiB
61
61
        
62
62
        return fs ;
63
63
}
80
80
                        S = -1 ;
81
81
        
82
82
                if ( N > -1 && S > -1 )
83
 
                        partition .Set_Unused( Utils::round( N * ( S / 512.0 ) ) ) ;
 
83
                        partition .Set_Unused( Utils::round( N * ( S / double(partition .sector_size) ) ) ) ;
84
84
        }
85
85
        else
86
86
        {