[80736] branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c
cal at macports.org
cal at macports.org
Sat Jul 16 11:53:36 PDT 2011
Revision: 80736
http://trac.macports.org/changeset/80736
Author: cal at macports.org
Date: 2011-07-16 11:53:33 -0700 (Sat, 16 Jul 2011)
Log Message:
-----------
rev-upgrade: Fixed error in macho_strerror
Modified Paths:
--------------
branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c
Modified: branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c
===================================================================
--- branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c 2011-07-16 18:04:09 UTC (rev 80735)
+++ branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c 2011-07-16 18:53:33 UTC (rev 80736)
@@ -484,8 +484,10 @@
/* Returns string representation of the MACHO_* error code constants */
const char *macho_strerror(int err) {
int num = 0;
- while ((err >>= 1) > 0)
+ while (err > 0) {
+ err >>= 1;
num++;
+ }
static char *errors[] = {
/* 0x00 */ "Success",
/* 0x01 */ "Error opening or reading file",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110716/87323288/attachment.html>
More information about the macports-changes
mailing list