syoyo / tinydng

Header-only Tiny DNG/TIFF loader and writer in C++
MIT License
154 stars 30 forks source link

unreachable code #47

Open maddin200 opened 2 weeks ago

maddin200 commented 2 weeks ago

File: /tiny_dng_loader.h line 3084

Code: if ((image_info.tile_width > 0) && (image_info.tile_length > 0)) { // Assume Lossless JPEG data is stored in tiled format. if (image_info.tile_width <= 0) { // <-- unreachable if (err) { (err) += "Invalid tile width.\n"; } return false; } if (image_info.tile_length <= 0) { // <-- unreachable if (err) { (err) += "Invalid tile length.\n"; } return false; }

syoyo commented 2 weeks ago

You can send PR