Skip to content

Commit

Permalink
added const qualifier to AVRational.q2d
Browse files Browse the repository at this point in the history
  • Loading branch information
ljubobratovicrelja committed Apr 10, 2016
1 parent 4713ceb commit 0eed665
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/ffmpeg/libavutil/rational.d
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ extern(C):
* rational number numerator/denominator
*/
struct AVRational {
int num;
int den;
double q2d() {
return num/cast(double) den;
}
int num;
int den;
double q2d() const {
return num/cast(double) den;
}
}


Expand Down

0 comments on commit 0eed665

Please sign in to comment.