aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/runtime/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/runtime/string.c')
-rw-r--r--libgfortran/runtime/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/runtime/string.c b/libgfortran/runtime/string.c
index 37c4da0..536a9cd 100644
--- a/libgfortran/runtime/string.c
+++ b/libgfortran/runtime/string.c
@@ -196,7 +196,7 @@ gfc_itoa (GFC_INTEGER_LARGEST n, char *buffer, size_t len)
if (n < 0)
{
negative = 1;
- t = -n; /*must use unsigned to protect from overflow*/
+ t = -(GFC_UINTEGER_LARGEST) n; /* Must use unsigned to protect from overflow. */
}
p = buffer + GFC_ITOA_BUF_SIZE - 1;