1 Description: Fix warning on 64 bit machines. Explicitely set variables as
3 Origin: http://git.debian.org/?p=pkg-multimedia/lame.git;a=blob;f=debian/patches/07-field-width-fix.patch
4 Forwarded: commit:1.282
5 Applied-Upstream: commit:1.282
10 const char *b = get_lame_os_bitness();
11 const char *v = get_lame_version();
12 const char *u = get_lame_url();
13 - const size_t lenb = strlen(b);
14 - const size_t lenv = strlen(v);
15 - const size_t lenu = strlen(u);
16 - const size_t lw = 80; /* line width of terminal in characters */
17 - const size_t sw = 16; /* static width of text */
18 + const unsigned int lenb = strlen(b);
19 + const unsigned int lenv = strlen(v);
20 + const unsigned int lenu = strlen(u);
21 + const unsigned int lw = 80; /* line width of terminal in characters */
22 + const unsigned int sw = 16; /* static width of text */
24 if (lw >= lenb + lenv + lenu + sw || lw < lenu + 2)
25 /* text fits in 80 chars per line, or line even too small for url */