Changes between Initial Version and Version 1 of Ticket #1190
- Timestamp:
- Jun 10, 2012, 8:16:22 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1190 – Description
initial v1 2 2 3 3 Here is the function checkSize 4 {{{ 4 5 // ============= 5 6 // checkSize … … 16 17 return 0; 17 18 } 18 19 }}} 19 20 Either, we can remove checkSize function completety or "return 1" should be removed. 20 21 In the last case, this function could be simply replaced by : 22 {{{ 21 23 int checkSize (int x){ 22 24 return ((x mod 2) == 0); 23 25 } 26 }}} 24 27 25 28 If x can't be not more than 512, we could obviously change the function above like this : 29 {{{ 26 30 int checkSize (int x){ 27 31 if (x > 512) return 0; 28 32 return ((x mod 2) == 0); 29 33 } 34 }}} 30 35 then it could be interesting to comment why x can't be > 512 31 36