Fix implicit float-to-bool conversions (#752)
[openjpeg.git] / src / bin / jp2 / index.c
index af6e138102b3ab2d7bd79fce24e8dcab1896150f..478f556a0a8a898ebaf90995d6a58353931fd06a 100644 (file)
@@ -69,7 +69,7 @@ int write_index_file(opj_codestream_info_t *cstr_info, char *index) {
                return 1;
        }
        
-       if (cstr_info->tile[0].distotile)
+       if (cstr_info->tile[0].distotile > 0.0)
                disto_on = 1;
        else 
                disto_on = 0;