Fixed the compiler error with gcc

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Fix the warnings gcc was throwing regarding converting a buffer straight into an int

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>