Warning fix: conversion from 'size_t' to 'int', possible loss of data

This commit is contained in:
William S Fulton 2024-09-04 19:36:38 +01:00
parent 3471cac459
commit 3935fee467
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ String *Swig_read_file(FILE *f) {
assert(str);
while (1) {
size_t c = fread(buffer, 1, sizeof(buffer), f);
if (c > 0) Write(str, buffer, c);
if (c > 0) Write(str, buffer, (int)c);
if (c < sizeof(buffer)) break;
}
len = Len(str);