Fossil SCM
Update the built-in Pikchr implementation to fix a compiler warning.
Commit
7f7df29bfc47efc036815a8fabb85928adba6f4974142f285aa561be0656c0d4
Parent
d6d4c14b0e1d10c…
1 file changed
+1
-1
+1
-1
| --- src/pikchr.c | ||
| +++ src/pikchr.c | ||
| @@ -6272,11 +6272,11 @@ | ||
| 6272 | 6272 | /* |
| 6273 | 6273 | ** Round a PNum into the nearest integer |
| 6274 | 6274 | */ |
| 6275 | 6275 | static int pik_round(PNum v){ |
| 6276 | 6276 | if( isnan(v) ) return 0; |
| 6277 | - if( v < -2147483647 ) return -2147483648; | |
| 6277 | + if( v < -2147483647 ) return (-2147483647-1); | |
| 6278 | 6278 | if( v >= 2147483647 ) return 2147483647; |
| 6279 | 6279 | return (int)v; |
| 6280 | 6280 | } |
| 6281 | 6281 | |
| 6282 | 6282 | /* |
| 6283 | 6283 |
| --- src/pikchr.c | |
| +++ src/pikchr.c | |
| @@ -6272,11 +6272,11 @@ | |
| 6272 | /* |
| 6273 | ** Round a PNum into the nearest integer |
| 6274 | */ |
| 6275 | static int pik_round(PNum v){ |
| 6276 | if( isnan(v) ) return 0; |
| 6277 | if( v < -2147483647 ) return -2147483648; |
| 6278 | if( v >= 2147483647 ) return 2147483647; |
| 6279 | return (int)v; |
| 6280 | } |
| 6281 | |
| 6282 | /* |
| 6283 |
| --- src/pikchr.c | |
| +++ src/pikchr.c | |
| @@ -6272,11 +6272,11 @@ | |
| 6272 | /* |
| 6273 | ** Round a PNum into the nearest integer |
| 6274 | */ |
| 6275 | static int pik_round(PNum v){ |
| 6276 | if( isnan(v) ) return 0; |
| 6277 | if( v < -2147483647 ) return (-2147483647-1); |
| 6278 | if( v >= 2147483647 ) return 2147483647; |
| 6279 | return (int)v; |
| 6280 | } |
| 6281 | |
| 6282 | /* |
| 6283 |