Index: tol/bbasic/bfsmem.cpp
===================================================================
--- tol/bbasic/bfsmem.cpp	(revision 865a39d35fb82c64af355faa7ef16cc2d6cf9b51)
+++ tol/bbasic/bfsmem.cpp	(revision 54e903c7b1ef327de8ff0dca1eade4a015ec2c8e)
@@ -51,5 +51,5 @@
 
 static BYTE  pow2_[8] = { 128, 64, 32, 16, 8, 4, 2, 1};
-static BYTE _pow2_[8] = {~128,~64,~32,~16,~8,~4,~2,~1};
+static BYTE _pow2_[8] = {(BYTE)(~128),(BYTE)(~64),(BYTE)(~32),(BYTE)(~16),(BYTE)(~8),(BYTE)(~4),(BYTE)(~2),(BYTE)(~1)};
 static unsigned short byte_pos_;
 static BYTE           bit_pos_;
@@ -419,11 +419,11 @@
 //--------------------------------------------------------------------
 : baseSize_           (baseSize),
-  percentThreshold_   (percentThreshold),
   page__              (NULL),
+  lastAllocPg_        (0), 
   lastPage_           (0), 
-  lastAllocPg_        (0), 
   pgNm_               (0),
   lastDelPgNm_        (0),
-  assigned_           (0)
+  assigned_           (0),
+  percentThreshold_   (percentThreshold)
 {
   assert(baseSize<=BFSMEM_MAX_BASE_SIZE);
@@ -648,12 +648,13 @@
   if(lastPage_)
   {
+  long int x = maxAllowed_*baseSize_;
     printf("\n"
-           "% 10.4f |"
-           "% 10d |"
-           "% 10d |"
-           "% 10u |"
-           "% 10d |"
-           "% 10ld |"
-           "% 10.2lf%% |",
+           "%10.4f |"
+           "%10d |"
+           "%10d |"
+           "%10u |"
+           "%10d |"
+           "%10ld |"
+           "%10.2lf%% |",
              _growingFactor_,
              _initPageSize_,
@@ -661,5 +662,5 @@
              baseSize_, 
              maxAllowed_,
-             maxAllowed_*baseSize_,
+             x,
              double(assigned_*100.0)/double(maxAllowed_));
 /*
