From 9fcb0f7583dea0b34269f794b795d443b593ba4a Mon Sep 17 00:00:00 2001 From: Veikko Soininen Date: Wed, 11 Dec 2019 18:53:01 +0200 Subject: [PATCH] Fix few warnings noticed with x64 MSVC build --- src/gfx/font.cpp | 2 +- src/settings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gfx/font.cpp b/src/gfx/font.cpp index 586a974..e67bc86 100644 --- a/src/gfx/font.cpp +++ b/src/gfx/font.cpp @@ -138,7 +138,7 @@ int Font::scanf(int x, int y, char *str, int max_len) { tausta_roska = new Bitmap(x, y, (width + 1) * (max_len + 1), height); - kohta = strlen(str); + kohta = (int)strlen(str); ch = 0; diff --git a/src/settings.cpp b/src/settings.cpp index 4cc31b8..355a593 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -362,7 +362,7 @@ void load_roster(void) { struct rosteri_header hdr; int ret; - ret = fread(&hdr, sizeof(hdr), 1, faili); + ret = (int)fread(&hdr, sizeof(hdr), 1, faili); if (ret != 1) { printf("failed to read roster.dta header\n"); exit(1);