mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-06 16:47:59 +08:00
ggwave, waver : minor compile warning fixes
This commit is contained in:
@@ -625,7 +625,7 @@ void updateCore() {
|
||||
|
||||
if (inputCurrent.update) {
|
||||
if (inputCurrent.flags.newMessage) {
|
||||
int n = inputCurrent.message.data.size();
|
||||
int n = (int) inputCurrent.message.data.size();
|
||||
|
||||
if (directSequenceSpread) {
|
||||
for (int i = 0; i < n; ++i) {
|
||||
|
||||
@@ -460,11 +460,11 @@ GGWave::~GGWave() {
|
||||
}
|
||||
|
||||
bool GGWave::init(const std::string & text, const int volume) {
|
||||
return init(text.size(), text.data(), getDefaultTxProtocol(), volume);
|
||||
return init((int) text.size(), text.data(), getDefaultTxProtocol(), volume);
|
||||
}
|
||||
|
||||
bool GGWave::init(const std::string & text, const TxProtocol & txProtocol, const int volume) {
|
||||
return init(text.size(), text.data(), txProtocol, volume);
|
||||
return init((int) text.size(), text.data(), txProtocol, volume);
|
||||
}
|
||||
|
||||
bool GGWave::init(int dataSize, const char * dataBuffer, const int volume) {
|
||||
|
||||
Reference in New Issue
Block a user