GNOME Bugzilla – Bug 786415
libdocument: Use a byte rather than an unsigned int for memset
Last modified: 2017-08-19 06:54:29 UTC
The patch should apply cleanly after the patches in bug 786414. The patch is not otherwise related to bug 786414, so I felt a separate bug report is more appropriate.
Created attachment 357797 [details] [review] libdocument: Use a byte rather than an unsigned int for memset Currently, gcc emits a warning for the constant used in the memset call. memset really sets a byte, so let's use one here, instead of the bigger unsigned integer. ev-document-misc.c:77:40: warning: conversion of unsigned constant value to negative integer [-Wsign-conversion] memset (data + (rowstride * i) + 4, 0xffffffff, nbytes);
Comment on attachment 357797 [details] [review] libdocument: Use a byte rather than an unsigned int for memset Pushed, thanks!