File: 13_fix-sign-compare.patch

package info (click to toggle)
xxdiff 1%3A4.0%2Bhg437%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,124 kB
  • ctags: 2,397
  • sloc: cpp: 18,485; python: 6,088; ansic: 1,535; sh: 1,533; perl: 308; lex: 284; yacc: 277; lisp: 250; tcl: 213; makefile: 82
file content (14 lines) | stat: -rw-r--r-- 751 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: fix a "comparison between signed and unsigned integer expressions" warning
Author: Florian Schlichting <fsfs@debian.org>

--- a/src/resParser.l
+++ b/src/resParser.l
@@ -76,7 +76,7 @@
    result = YY_NULL;                                                   \
 }                                                                      \
 else {                                                                 \
-   int ii = 0;                                                         \
+   unsigned int ii = 0;                                                \
    for ( ; (ii < max_size) && (!input_stream_ptr->atEnd()); ++ii ) {   \
 	(*input_stream_ptr) >> buf[ii]; \
    }                                                                   \