Fossil SCM
Latest upstream pikchr.c to account for a gcc 12.2 warning reported in /chat.
Commit
315aa26924593972abcb93b2cb468a43635e38ffeb86a62c6a769c5a18edc413
Parent
abdf2805fef7f4b…
1 file changed
+1
-1
+1
-1
| --- extsrc/pikchr.c | ||
| +++ extsrc/pikchr.c | ||
| @@ -5108,11 +5108,11 @@ | ||
| 5108 | 5108 | int iEnd; /* End position of the error context */ |
| 5109 | 5109 | int iLineno; /* Line number of the error */ |
| 5110 | 5110 | int iFirstLineno; /* Line number of start of error context */ |
| 5111 | 5111 | int i; /* Loop counter */ |
| 5112 | 5112 | int iBump = 0; /* Bump the location of the error cursor */ |
| 5113 | - char zLineno[20]; /* Buffer in which to generate line numbers */ | |
| 5113 | + char zLineno[24]; /* Buffer in which to generate line numbers */ | |
| 5114 | 5114 | |
| 5115 | 5115 | iErrPt = (int)(pErr->z - p->sIn.z); |
| 5116 | 5116 | if( iErrPt>=(int)p->sIn.n ){ |
| 5117 | 5117 | iErrPt = p->sIn.n-1; |
| 5118 | 5118 | iBump = 1; |
| 5119 | 5119 |
| --- extsrc/pikchr.c | |
| +++ extsrc/pikchr.c | |
| @@ -5108,11 +5108,11 @@ | |
| 5108 | int iEnd; /* End position of the error context */ |
| 5109 | int iLineno; /* Line number of the error */ |
| 5110 | int iFirstLineno; /* Line number of start of error context */ |
| 5111 | int i; /* Loop counter */ |
| 5112 | int iBump = 0; /* Bump the location of the error cursor */ |
| 5113 | char zLineno[20]; /* Buffer in which to generate line numbers */ |
| 5114 | |
| 5115 | iErrPt = (int)(pErr->z - p->sIn.z); |
| 5116 | if( iErrPt>=(int)p->sIn.n ){ |
| 5117 | iErrPt = p->sIn.n-1; |
| 5118 | iBump = 1; |
| 5119 |
| --- extsrc/pikchr.c | |
| +++ extsrc/pikchr.c | |
| @@ -5108,11 +5108,11 @@ | |
| 5108 | int iEnd; /* End position of the error context */ |
| 5109 | int iLineno; /* Line number of the error */ |
| 5110 | int iFirstLineno; /* Line number of start of error context */ |
| 5111 | int i; /* Loop counter */ |
| 5112 | int iBump = 0; /* Bump the location of the error cursor */ |
| 5113 | char zLineno[24]; /* Buffer in which to generate line numbers */ |
| 5114 | |
| 5115 | iErrPt = (int)(pErr->z - p->sIn.z); |
| 5116 | if( iErrPt>=(int)p->sIn.n ){ |
| 5117 | iErrPt = p->sIn.n-1; |
| 5118 | iBump = 1; |
| 5119 |