[haiku-commits] Re: BRANCH xyzzy-github.x86_64 - src/add-ons/kernel/file_systems/bfs

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 31 Jul 2012 12:36:53 +0200

On 31.07.2012 11:49, xyzzy-github.x86_64 wrote:
3cd66dd: Fix CID 712419, 712420, 712421, 712422: Unintentional sign extension 
to 64 bits.

Thanks, this would be great to have in trunk, too.

-                       int32 maxIndex = (indirect.Length() << 
fVolume->BlockShift())
-                               / sizeof(block_run);
+                       int32 maxIndex =
+                               ((uint32)indirect.Length() << 
fVolume->BlockShift())
+                                       / sizeof(block_run);

The '=' goes to the next line.

Bye,
   Axel.


Other related posts: