Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (5m)  pkgsrc-2024Q1 (10d)  pkgsrc-2023Q4 (56d)  pkgsrc-2023Q2 (89d)  pkgsrc-2023Q3 (168d) 

2024-05-27 13:40:41 UTC Now

2017-05-31 22:32:53 UTC MAIN commitmail json YAML

build fix for recent c++ compilers.

thanks, compiler writers, for helping us avoid this heinous sin:

src/vcdecoder_test.cc:33:3: error: narrowing conversion of '195' from 'int' to 'char' inside { } [-Wnarrowing]

and the diff used to avoid this:

const char VCDiffDecoderTest::kStandardFileHeader[] = {
-    0xD6,  // 'V' | 0x80
-    0xC3,  // 'C' | 0x80
-    0xC4,  // 'D' | 0x80
-    0x00,  // Draft standard version number
+    (char)0xD6,  // 'V' | 0x80
+    (char)0xC3,  // 'C' | 0x80
+    (char)0xC4,  // 'D' | 0x80
+    (char)0x00,  // Draft standard version number
    0x00  // Hdr_Indicator: no custom code table, no compression
  };

(agc)