diff --git a/tests/driver_servo/main.c b/tests/driver_servo/main.c
index 3518ff744bedd86f694e815cf09e88cb831154b8..a93d9fab44b2bf0e7cd2c179a0c17556fec93a9d 100644
--- a/tests/driver_servo/main.c
+++ b/tests/driver_servo/main.c
@@ -53,7 +53,7 @@ static servo_t servo;
 int main(void)
 {
     int res;
-    int pos = (STEP_LOWER_BOUND + STEP_UPPER_BOUND) / 2;
+    unsigned int pos = (STEP_LOWER_BOUND + STEP_UPPER_BOUND) / 2;
     int step = STEP;
 
     puts("\nRIOT RC servo test");