Skip to content
Commit a3325f63 authored by Ting-Wei Lan's avatar Ting-Wei Lan
Browse files

Cast enum to int before doing calculation

It seems that it is possible for compilers to use unsigned interger
types to store enum values, so we should cast them to signed interger
types before doing calculation to avoid getting unexpected results.

https://bugzilla.gnome.org/show_bug.cgi?id=783428
parent 7a8744e1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment