升级到qt5.8出错误 narrowing conversion of '192' from 'int' to 'char' inside
以前5.5版没有报错,5.8报了如何处理比较好
F:\qtWork\protocolSerial\protocolSerial\mainwindow.cpp:1058: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
char buf[] ={0xC0,0x00,0x0A,0x00,0x01,0x00,0x0E,0x03,0xC0};
^