Fossil SCM

Latest upstream pikchr.c to account for a gcc 12.2 warning reported in /chat.

stephan 2023-12-24 17:40 trunk
Commit 315aa26924593972abcb93b2cb468a43635e38ffeb86a62c6a769c5a18edc413
1 file changed +1 -1
+1 -1
--- extsrc/pikchr.c
+++ extsrc/pikchr.c
@@ -5108,11 +5108,11 @@
51085108
int iEnd; /* End position of the error context */
51095109
int iLineno; /* Line number of the error */
51105110
int iFirstLineno; /* Line number of start of error context */
51115111
int i; /* Loop counter */
51125112
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 */
51145114
51155115
iErrPt = (int)(pErr->z - p->sIn.z);
51165116
if( iErrPt>=(int)p->sIn.n ){
51175117
iErrPt = p->sIn.n-1;
51185118
iBump = 1;
51195119
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button