Fossil SCM

Eliminate (harmless) compiler warning

jan.nijtmans 2016-06-14 07:43 trunk
Commit e449ede35ee20c58b70e9e7c1669a8b08da72564
1 file changed +3 -3
+3 -3
--- src/lookslike.c
+++ src/lookslike.c
@@ -157,16 +157,16 @@
157157
c = *z;
158158
while( --n>0 ){
159159
c2 = c;
160160
c = *++z;
161161
if( c2>=0x80 ){
162
- if( ((c&0xc0)!=0x80) || ((c2<0xc2) || (c2>=0xf4)) &&
163
- (((c2!=0xf4) || (c>=0x90)) && ((c2!=0xc0) || (c!=0x80))) ){
162
+ if( ((c&0xc0)!=0x80) || (((c2<0xc2) || (c2>=0xf4)) &&
163
+ (((c2!=0xf4) || (c>=0x90)) && ((c2!=0xc0) || (c!=0x80)))) ){
164164
return LOOK_INVALID; /* Invalid UTF-8 */
165165
}
166166
if( c2>=0xe0 ){
167
- if ((c2==0xf0 && c<0x90)||(c2==0xe0 && c<0xa0)){
167
+ if ((c2==0xf0 && c<0x90)||(c2==0xe0 && c<0xa0) ){
168168
return LOOK_INVALID; /* Invalid UTF-8, too short */
169169
}
170170
c = (c2<<1)|3;
171171
}else{
172172
c = ' ';
173173
--- src/lookslike.c
+++ src/lookslike.c
@@ -157,16 +157,16 @@
157 c = *z;
158 while( --n>0 ){
159 c2 = c;
160 c = *++z;
161 if( c2>=0x80 ){
162 if( ((c&0xc0)!=0x80) || ((c2<0xc2) || (c2>=0xf4)) &&
163 (((c2!=0xf4) || (c>=0x90)) && ((c2!=0xc0) || (c!=0x80))) ){
164 return LOOK_INVALID; /* Invalid UTF-8 */
165 }
166 if( c2>=0xe0 ){
167 if ((c2==0xf0 && c<0x90)||(c2==0xe0 && c<0xa0)){
168 return LOOK_INVALID; /* Invalid UTF-8, too short */
169 }
170 c = (c2<<1)|3;
171 }else{
172 c = ' ';
173
--- src/lookslike.c
+++ src/lookslike.c
@@ -157,16 +157,16 @@
157 c = *z;
158 while( --n>0 ){
159 c2 = c;
160 c = *++z;
161 if( c2>=0x80 ){
162 if( ((c&0xc0)!=0x80) || (((c2<0xc2) || (c2>=0xf4)) &&
163 (((c2!=0xf4) || (c>=0x90)) && ((c2!=0xc0) || (c!=0x80)))) ){
164 return LOOK_INVALID; /* Invalid UTF-8 */
165 }
166 if( c2>=0xe0 ){
167 if ((c2==0xf0 && c<0x90)||(c2==0xe0 && c<0xa0) ){
168 return LOOK_INVALID; /* Invalid UTF-8, too short */
169 }
170 c = (c2<<1)|3;
171 }else{
172 c = ' ';
173

Keyboard Shortcuts

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