aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-11 15:35:08 -0500
committerTed Gould <ted@gould.cx>2010-08-11 15:35:08 -0500
commitcfe735bc43d3240b60da3668d5c211286ff32023 (patch)
treed39a01329c95a56477baa63f1247a375e516bac9
parenta0c8fb032b4eb3fb534367832d43207cfdf31309 (diff)
downloadlibayatana-appindicator-cfe735bc43d3240b60da3668d5c211286ff32023.tar.gz
libayatana-appindicator-cfe735bc43d3240b60da3668d5c211286ff32023.tar.bz2
libayatana-appindicator-cfe735bc43d3240b60da3668d5c211286ff32023.zip
Using unsigned chars for calculating, we want no sign extension.
-rw-r--r--src/generate-id.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/generate-id.c b/src/generate-id.c
index a504e44..14d762e 100644
--- a/src/generate-id.c
+++ b/src/generate-id.c
@@ -26,10 +26,10 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
guint32
generate_id (const AppIndicatorCategory catenum, const gchar * id)
{
- gchar category = 0;
- gchar first = 0;
- gchar second = 0;
- gchar third = 0;
+ guchar category = 0;
+ guchar first = 0;
+ guchar second = 0;
+ guchar third = 0;
switch (catenum) {
case APP_INDICATOR_CATEGORY_OTHER: