Changes between Initial Version and Version 1 of Ticket #1190


Ignore:
Timestamp:
Jun 10, 2012, 8:16:22 PM (12 years ago)
Author:
Nicolas
Comment:

Fixed bug formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1190 – Description

    initial v1  
    22
    33Here is the function checkSize
     4{{{
    45//      =============
    56//      checkSize
     
    1617                return 0;
    1718}
    18 
     19}}}
    1920Either, we can remove checkSize function completety or "return 1" should be removed.
    2021In the last case, this function could be simply replaced by :
     22{{{
    2123int checkSize (int x){
    2224   return ((x mod 2) == 0);
    2325}
     26}}}
    2427
    2528If x can't be not more than 512, we could obviously change the function above like this :
     29{{{
    2630int checkSize (int x){
    2731   if (x > 512) return 0;
    2832   return ((x mod 2) == 0);
    2933}
     34}}}
    3035then it could be interesting to comment why x can't be > 512
    3136