Fix incompatible pointer conversion
Merge pull request #6259 from iSevenDays/patch-7

Fix incompatible pointer conversion