blob: d3fabb44d987edc5074ba9cf1b88832d03cf6483 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
- workaround for https://github.com/flashlight/flashlight/issues/1087
--- flashlight/fl/dataset/FileBlobDataset.cpp.orig 2023-03-15 07:10:45 UTC
+++ flashlight/fl/dataset/FileBlobDataset.cpp
@@ -72,7 +72,7 @@ int64_t FileBlobDataset::writeData(
auto fs = getStream();
fs->seekp(offset, std::ios_base::beg);
fs->write(data, size);
- return fs->tellp() - offset;
+ return int64_t(fs->tellp()) - offset;
}
int64_t FileBlobDataset::readData(int64_t offset, char* data, int64_t size)
@@ -80,7 +80,7 @@ int64_t FileBlobDataset::readData(int64_t offset, char
auto fs = getStream();
fs->seekg(offset, std::ios_base::beg);
fs->read(data, size);
- return fs->tellg() - offset;
+ return int64_t(fs->tellg()) - offset;
}
void FileBlobDataset::flushData() {
|