summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix_vm.c6
-rw-r--r--mixlib/xmix_vm_handlers.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/mixlib/mix_vm.c b/mixlib/mix_vm.c
index d2959f2..d714bba 100644
--- a/mixlib/mix_vm.c
+++ b/mixlib/mix_vm.c
@@ -1,7 +1,7 @@
/* -*-c-*- ------------------ mix_vm.c :
* Implementation of the functions declared in mix_vm.h
* ------------------------------------------------------------------
- * Copyright (C) 2000, 2001, 2004, 2007 Free Software Foundation, Inc.
+ * Copyright (C) 2000, 2001, 2004, 2007, 2014 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -528,8 +528,8 @@ mix_vm_get_error_string (mix_vm_error_t code)
N_("Unknow error code")
};
- return errors[(code < 0 || code > MIX_VM_ERROR_UNEXPECTED)
- ? MIX_VM_ERROR_UNEXPECTED + 1 : code];
+ return errors[code > MIX_VM_ERROR_UNEXPECTED ?
+ MIX_VM_ERROR_UNEXPECTED + 1 : code];
}
/* Breakpoints */
diff --git a/mixlib/xmix_vm_handlers.c b/mixlib/xmix_vm_handlers.c
index a567f38..c964116 100644
--- a/mixlib/xmix_vm_handlers.c
+++ b/mixlib/xmix_vm_handlers.c
@@ -1377,7 +1377,7 @@ cmd_psrc_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg)
gboolean
cmd_pline_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg)
{
- gulong line = 0;
+ glong line = 0;
const gchar *txt;
if (arg && strlen (arg)) line = atoi (arg);