@@ -1889,7 +1889,7 @@ dwg_resbuf_value_type (short gc)
18891889 return DWG_VT_STRING ;
18901890 if (gc <= 998 )
18911891 return DWG_VT_INVALID ;
1892- if (gc == 999 )
1892+ if (gc == 999 ) // comparison could be removed
18931893 return DWG_VT_STRING ; // lgtm [cpp/constant-comparison]
18941894 }
18951895 }
@@ -1905,7 +1905,7 @@ dwg_resbuf_value_type (short gc)
19051905 return DWG_VT_STRING ;
19061906 if (gc <= 429 )
19071907 return DWG_VT_INT32 ;
1908- if (gc <= 439 )
1908+ if (gc <= 439 ) // comparison could be removed
19091909 return DWG_VT_STRING ; // lgtm [cpp/constant-comparison]
19101910 }
19111911 else // 330-389
@@ -1920,7 +1920,7 @@ dwg_resbuf_value_type (short gc)
19201920 350-359 SoftOwner, 360-369 HardOwner */
19211921 if (gc <= 369 )
19221922 return DWG_VT_OBJECTID ;
1923- if (gc <= 389 )
1923+ if (gc <= 389 ) // comparison could be removed
19241924 return DWG_VT_INT16 ; // lgtm [cpp/constant-comparison]
19251925 }
19261926 }
@@ -1937,7 +1937,7 @@ dwg_resbuf_value_type (short gc)
19371937 return DWG_VT_INT16 ;
19381938 if (gc <= 289 )
19391939 return DWG_VT_INT8 ;
1940- if (gc <= 299 )
1940+ if (gc <= 299 ) // comparison could be removed
19411941 return DWG_VT_BOOL ; // lgtm [cpp/constant-comparison]
19421942 }
19431943 else // 105-209
@@ -1956,7 +1956,7 @@ dwg_resbuf_value_type (short gc)
19561956 return DWG_VT_INT64 ;
19571957 if (gc <= 179 )
19581958 return DWG_VT_INT16 ;
1959- if (gc <= 209 )
1959+ if (gc <= 209 ) // comparison could be removed
19601960 return DWG_VT_INVALID ; // lgtm [cpp/constant-comparison]
19611961 }
19621962 }
@@ -1983,7 +1983,7 @@ dwg_resbuf_value_type (short gc)
19831983 return DWG_VT_HANDLE ;
19841984 if (gc <= 9 )
19851985 return DWG_VT_STRING ; // but 9 never TU
1986- if (gc <= 37 )
1986+ if (gc <= 37 ) // comparison could be removed
19871987 return DWG_VT_POINT3D ; // lgtm [cpp/constant-comparison]
19881988 }
19891989 }
0 commit comments