Skip to content

Commit

Permalink
Fix few warnings noticed with x64 MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
veikkos committed Dec 11, 2019
1 parent 58727c5 commit 9fcb0f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gfx/font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fcb0f7

Please sign in to comment.