Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anna Medonosová
Krita
Commits
407e4432
Commit
407e4432
authored
Jul 23, 2019
by
Ivan Yossi
👌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence warnig: compare signed and unsigned
At least check first unsigned is bigger than 0 before comparing.
parent
bb688f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
plugins/impex/heif/HeifImport.cpp
plugins/impex/heif/HeifImport.cpp
+5
-1
No files found.
plugins/impex/heif/HeifImport.cpp
View file @
407e4432
...
...
@@ -64,7 +64,11 @@ public:
Reader_QIODevice
(
QIODevice
*
device
)
:
m_device
(
device
)
{
m_total_length
=
m_device
->
bytesAvailable
();
}
int64_t
get_position
()
const
{
return
m_device
->
pos
();
}
int
read
(
void
*
data
,
size_t
size
)
{
return
m_device
->
read
((
char
*
)
data
,
size
)
!=
size
;
}
int
read
(
void
*
data
,
size_t
size
)
{
qint64
readSize
=
m_device
->
read
((
char
*
)
data
,
(
qint64
)
size
);
return
(
readSize
>
0
&&
(
quint64
)
readSize
!=
size
);
}
int
seek
(
int64_t
position
)
{
return
!
m_device
->
seek
(
position
);
}
heif_reader_grow_status
wait_for_file_size
(
int64_t
target_size
)
{
return
(
target_size
>
m_total_length
)
?
heif_reader_grow_status_size_beyond_eof
:
heif_reader_grow_status_size_reached
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment