| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** 2001 September 15 | 2 ** 2001 September 15 |
| 3 ** | 3 ** |
| 4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
| 5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
| 6 ** | 6 ** |
| 7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
| 8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
| 9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
| 10 ** | 10 ** |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 | 1141 |
| 1142 /* | 1142 /* |
| 1143 ** Compute the absolute value of a 32-bit signed integer, of possible. Or | 1143 ** Compute the absolute value of a 32-bit signed integer, of possible. Or |
| 1144 ** if the integer has a value of -2147483648, return +2147483647 | 1144 ** if the integer has a value of -2147483648, return +2147483647 |
| 1145 */ | 1145 */ |
| 1146 int sqlite3AbsInt32(int x){ | 1146 int sqlite3AbsInt32(int x){ |
| 1147 if( x>=0 ) return x; | 1147 if( x>=0 ) return x; |
| 1148 if( x==(int)0x80000000 ) return 0x7fffffff; | 1148 if( x==(int)0x80000000 ) return 0x7fffffff; |
| 1149 return -x; | 1149 return -x; |
| 1150 } | 1150 } |
| OLD | NEW |