mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 08:37:26 +00:00
fix small warning (#202)
* 111 2222 * fix small warning * remove remove
This commit is contained in:
parent
a71f2a8b27
commit
142f0941c4
@ -163,14 +163,14 @@ void createNewDialog::on_buttonCreate_clicked()
|
||||
{
|
||||
char file[32];
|
||||
QByteArray hexpairs = ui->plainTextEdit->toPlainText().toUtf8();
|
||||
int sz = strlen(hexpairs.constData());
|
||||
size_t sz = strlen(hexpairs.constData());
|
||||
if (sz > 0)
|
||||
{
|
||||
snprintf(file, sizeof(file) - 1, "malloc://%d", sz);
|
||||
snprintf(file, sizeof(file) - 1, "malloc://%d", (int)sz);
|
||||
if (w->core->loadFile(file, 0, 0, 1, 0, 0, false))
|
||||
{
|
||||
created = true;
|
||||
r_core_write_at(lcore, 0, (const ut8 *)hexpairs.constData(), sz);
|
||||
r_core_write_at(lcore, 0, (const ut8 *)hexpairs.constData(), (int)sz);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user