# Maelstrom: This is an int now, so use %d

**URL:** <https://discourse.libsdl.org/t/maelstrom-this-is-an-int-now-so-use-d/39985>\
**Category:** SDL Commits\
**Created:** [November 17, 2022, 7:41am UTC](https://discourse.libsdl.org/t/maelstrom-this-is-an-int-now-so-use-d/39985 "2022-11-17T07:41:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [November 17, 2022, 7:41am UTC](https://discourse.libsdl.org/t/maelstrom-this-is-an-int-now-so-use-d/39985/1 "2022-11-17T07:41:52Z")

</div>

[https://github.com/libsdl-org/Maelstrom/commit/f2d9cbc9247c8fa2546533629cc59fc2b1b2c97f](https://github.com/libsdl-org/Maelstrom/commit/f2d9cbc9247c8fa2546533629cc59fc2b1b2c97f)

```diff
From f2d9cbc9247c8fa2546533629cc59fc2b1b2c97f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 4 Nov 2011 21:52:26 -0400
Subject: [PATCH] This is an int now, so use %d

---
 utils/prefs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/prefs.cpp b/utils/prefs.cpp
index 11976c90..112069bf 100644
--- a/utils/prefs.cpp
+++ b/utils/prefs.cpp
@@ -146,7 +146,7 @@ Prefs::SetNumber(const char *key, int value)
 {
 	char buf[32];
 
-	SDL_snprintf(buf, sizeof(buf), "%u", value);
+	SDL_snprintf(buf, sizeof(buf), "%d", value);
 	SetString(key, buf);
 }
 

```
