Skip to content

Commit

Permalink
fix undeclared uintptr_t
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Mar 7, 2018
1 parent 1ad00bf commit 98f5854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QtAV/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Q_AV_EXPORT Frame
uchar* frameDataPtr(int* size = NULL) const {
const int a = dataAlignment();
uchar* p = (uchar*)frameData().constData();
const int offset = (a - ((uintptr_t)p & (a-1))) & (a-1);
const int offset = (a - ((quintptr)p & (a-1))) & (a-1);
if (size)
*size = frameData().size() - offset;
return p+offset;
Expand Down

0 comments on commit 98f5854

Please sign in to comment.