Changeset 657747 in git for omalloc/omTables.c


Ignore:
Timestamp:
Jan 7, 2011, 4:00:59 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
Children:
afc913d3bf15e0e109b09ee2e7c9c088088429ce
Parents:
e961ee49ffe19b2ceb5ebbde55790cf01100a939
Message:
fprintf fixes

git-svn-id: file:///usr/local/Singular/svn/trunk@13785 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omTables.c

    re961ee4 r657747  
    6868  long i, j;
    6969  printf("omBin om_Size2%sBin[/*%ld*/] = {\n",
    70          (track? "Track" : ""), max_block_size / SIZEOF_OM_ALIGNMENT);
     70         (track? "Track" : ""), (long)(max_block_size / SIZEOF_OM_ALIGNMENT));
    7171  i=0;
    7272  j=SIZEOF_OM_ALIGNMENT;
     
    8989  }
    9090  printf("omBin om_Size2%sBin[/*%ld*/] = {\n",
    91          (track ? "Track" : "Aligned"), max_block_size / SIZEOF_OM_ALIGNMENT);
     91         (track ? "Track" : "Aligned"), (long)(max_block_size / SIZEOF_OM_ALIGNMENT));
    9292  i=0;
    9393  while (binSize[i] % SIZEOF_STRICT_ALIGNMENT != 0) i++;
     
    114114  {
    115115    printf("{om_ZeroPage, NULL, NULL, %ld, %ld, 0},\n",
    116            binSize[i] / SIZEOF_LONG,
    117            SIZEOF_OM_BIN_PAGE/binSize[i]);
     116           (long)(binSize[i] / SIZEOF_LONG),
     117           (long)(SIZEOF_OM_BIN_PAGE/binSize[i]));
    118118  }
    119119  printf("{om_ZeroPage, NULL, NULL, %ld, %ld, 0}\n};\n\n",
    120          binSize[i] / SIZEOF_LONG,
    121          SIZEOF_OM_BIN_PAGE/binSize[i]);
     120         (long)(binSize[i] / SIZEOF_LONG),
     121         (long)(SIZEOF_OM_BIN_PAGE/binSize[i]));
    122122}
    123123
Note: See TracChangeset for help on using the changeset viewer.