diff --git a/docs/animationwindow/gui.md b/docs/animationwindow/gui.md
index fec18afbfa189d0f82a7748c1d79088995f194f9..c6dbac2f7aa20e5a0b7c630651d43a66168e30a3 100644
--- a/docs/animationwindow/gui.md
+++ b/docs/animationwindow/gui.md
@@ -22,8 +22,8 @@ For å vise hvordan man definerer og bruker en callback funksjon, fortsetter vi
 int main()
 {
 	const Point buttonPosition {100, 100};
-	const int buttonWidth = 100;
-	const int buttonHeight = 40;
+	const unsigned int buttonWidth = 100;
+	const unsigned int buttonHeight = 40;
 	const string buttonLabel = "Click me!";
 	Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};
 
@@ -49,8 +49,8 @@ void callbackFunction() {
 int main()
 {
 	const Point buttonPosition {100, 100};
-	const int buttonWidth = 100;
-	const int buttonHeight = 40;
+	const unsigned int buttonWidth = 100;
+	const unsigned int buttonHeight = 40;
 	const string buttonLabel = "Click me!";
 	Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};
 
@@ -76,8 +76,8 @@ void callbackFunction() {
 int main()
 {
 	const Point buttonPosition {100, 100};
-	const int buttonWidth = 100;
-	const int buttonHeight = 40;
+	const unsigned int buttonWidth = 100;
+	const unsigned int buttonHeight = 40;
 	const string buttonLabel = "Click me!";
 	Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};
 
@@ -159,8 +159,8 @@ void buttonClicked() {
 int main()
 {
 	const Point buttonPosition {100, 100};
-	const int buttonWidth = 100;
-	const int buttonHeight = 40;
+	const unsigned int buttonWidth = 100;
+	const unsigned int buttonHeight = 40;
 	const string buttonLabel = "Click me!";
 	Button button {buttonPosition, buttonWidth, buttonHeight, buttonLabel};