Task #90340 - fixed.err
back to task #90340download
Error: GCC_ANALYZER_WARNING: cups-2.4.14/filter/pstops.c:3224:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results cups-2.4.14/filter/pstops.c:3209:6: branch_true: following ‘true’ branch... cups-2.4.14/filter/pstops.c:3220:8: branch_true: following ‘true’ branch (when ‘max_width < label_len’)... cups-2.4.14/filter/pstops.c:3222:19: branch_true: ...to here cups-2.4.14/filter/pstops.c:3224:23: danger: operand ‘width’ is of type ‘float’ # 3222| lines = 1 + (int)(label_len / max_width); # 3223| line_len = (int)(label_len / lines); # 3224|-> wrapped_label = malloc(sizeof(*wrapped_label) * lines); # 3225| label_index = i = n = 0; # 3226| while (classification[label_index])