diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2020-04-21 20:53:35 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2020-04-21 20:56:05 -0400 |
commit | 844271305a28e87031562dfeb43defbea02960a2 (patch) | |
tree | 20aa7ca73888baef3dd8ca5c7626a4bc9b6330c4 /src/LoadFont.c | |
parent | 53b59ddfc114a55d26e9717a1b4822f1b18c40ca (diff) |
reduce gcc-normal warnings using casts (no object change)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/LoadFont.c')
-rw-r--r-- | src/LoadFont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LoadFont.c b/src/LoadFont.c index f547976b..0a3809a8 100644 --- a/src/LoadFont.c +++ b/src/LoadFont.c @@ -43,7 +43,7 @@ XLoadFont ( LockDisplay(dpy); GetReq(OpenFont, req); - nbytes = req->nbytes = name ? strlen(name) : 0; + nbytes = req->nbytes = name ? (CARD16) strlen(name) : 0; req->fid = fid = XAllocID(dpy); req->length += (nbytes+3)>>2; Data (dpy, name, nbytes); |