Changeset 54e903c in tol


Ignore:
Timestamp:
Aug 4, 2015, 10:23:28 AM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
59d4d46
Parents:
865a39d3
Message:

refs #1866, limpieza de warnings reportados por -Wall

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6805 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/bfsmem.cpp

    r865a39d3 r54e903c  
    5151
    5252static BYTE  pow2_[8] = { 128, 64, 32, 16, 8, 4, 2, 1};
    53 static BYTE _pow2_[8] = {~128,~64,~32,~16,~8,~4,~2,~1};
     53static BYTE _pow2_[8] = {(BYTE)(~128),(BYTE)(~64),(BYTE)(~32),(BYTE)(~16),(BYTE)(~8),(BYTE)(~4),(BYTE)(~2),(BYTE)(~1)};
    5454static unsigned short byte_pos_;
    5555static BYTE           bit_pos_;
    … …  
    419419//--------------------------------------------------------------------
    420420: baseSize_           (baseSize),
    421   percentThreshold_   (percentThreshold),
    422421  page__              (NULL),
     422  lastAllocPg_        (0),
    423423  lastPage_           (0),
    424   lastAllocPg_        (0),
    425424  pgNm_               (0),
    426425  lastDelPgNm_        (0),
    427   assigned_           (0)
     426  assigned_           (0),
     427  percentThreshold_   (percentThreshold)
    428428{
    429429  assert(baseSize<=BFSMEM_MAX_BASE_SIZE);
    … …  
    648648  if(lastPage_)
    649649  {
     650  long int x = maxAllowed_*baseSize_;
    650651    printf("\n"
    651            "% 10.4f |"
    652            "% 10d |"
    653            "% 10d |"
    654            "% 10u |"
    655            "% 10d |"
    656            "% 10ld |"
    657            "% 10.2lf%% |",
     652           "%10.4f |"
     653           "%10d |"
     654           "%10d |"
     655           "%10u |"
     656           "%10d |"
     657           "%10ld |"
     658           "%10.2lf%% |",
    658659             _growingFactor_,
    659660             _initPageSize_,
    … …  
    661662             baseSize_,
    662663             maxAllowed_,
    663              maxAllowed_*baseSize_,
     664             x,
    664665             double(assigned_*100.0)/double(maxAllowed_));
    665666/*
Note: See TracChangeset for help on using the changeset viewer.