Fixed possible accidental conversion memsize type to strict 32 bit

This commit is contained in:
Herman Semenov committed 2024-04-02 19:03:12 +03:00
1 parent 8aac45fec0
commit 9e126b5f00
5 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ void HttpImageFileView::Draw(UIContext &dc) {
}
if (!textureData_.empty()) {
texture_ = CreateTextureFromFileData(dc.GetDrawContext(), (const uint8_t *)(textureData_.data()), (int)textureData_.size(), ImageFileType::DETECT, false, "store_icon");
texture_ = CreateTextureFromFileData(dc.GetDrawContext(), (const uint8_t *)(textureData_.data()), textureData_.size(), ImageFileType::DETECT, false, "store_icon");
if (!texture_)
textureFailed_ = true;
textureData_.clear();