Skip to content

Commit

Permalink
64-bit Mac OS X fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 28, 2010
1 parent 5a31962 commit 79c86a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mojocrash_macosx.c
Expand Up @@ -27,7 +27,7 @@ typedef struct segment_command SegmentCommand;
#error There seems to be a problem.
#endif

static long macver_major, macver_minor, macver_patch;
static SInt32 macver_major, macver_minor, macver_patch;

/*
* The stackwalking code was, a lifetime ago, based on MoreBacktrace.c from
Expand Down Expand Up @@ -205,7 +205,7 @@ int MOJOCRASH_platform_get_objects(MOJOCRASH_get_objects_callback cb)
static void lookup_version(void)
{
static int looked_up = 0;
long ver = 0;
SInt32 ver = 0;

if (looked_up)
return;
Expand Down Expand Up @@ -261,8 +261,8 @@ void MOJOCRASH_unix_get_osver(char *buf, const size_t buflen)
snprintf(buf, buflen, "???");
else
{
snprintf(buf, buflen, "%ld.%ld.%ld",
macver_major, macver_minor, macver_patch);
snprintf(buf, buflen, "%d.%d.%d",
(int) macver_major, (int) macver_minor, (int) macver_patch);
} /* else */
} /* MOJOCRASH_unix_get_osver */

Expand Down

0 comments on commit 79c86a5

Please sign in to comment.