From db6543d8849adec214fbc34831d8c70be87819af Mon Sep 17 00:00:00 2001
From: "Adam D. Ruppe" <destructionator@gmail.com>
Date: Sat, 15 Mar 2014 13:49:46 -0400
Subject: [PATCH] idk

---
 stb_truetype.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stb_truetype.d b/stb_truetype.d
index bd6441b..d6d3da4 100644
--- a/stb_truetype.d
+++ b/stb_truetype.d
@@ -383,7 +383,7 @@ version(BigEndian) {
    stbtt_int32 ttLONG(in stbtt_uint8* p)     { return * cast(stbtt_int32 *) (p); }
 } else {
    stbtt_uint16 ttUSHORT(const stbtt_uint8 *p) { return p[0]*256 + p[1]; }
-   stbtt_int16 ttSHORT(const stbtt_uint8 *p)   { return p[0]*256 + p[1]; }
+   stbtt_int16 ttSHORT(const stbtt_uint8 *p)   { return cast(short)(p[0]*256 + p[1]); }
    stbtt_uint32 ttULONG(const stbtt_uint8 *p)  { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }
    stbtt_int32 ttLONG(const stbtt_uint8 *p)    { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; }
 }