Skip to content

Instantly share code, notes, and snippets.

@postwait
Created September 7, 2012 14:35
Show Gist options
  • Select an option

  • Save postwait/3666713 to your computer and use it in GitHub Desktop.

Select an option

Save postwait/3666713 to your computer and use it in GitHub Desktop.
diff --git a/usr/src/cmd/perl/contrib/Sun/Solaris/Privilege/Privilege.xs b/usr/s
index aeeeb4a..9028942 100644
--- a/usr/src/cmd/perl/contrib/Sun/Solaris/Privilege/Privilege.xs
+++ b/usr/src/cmd/perl/contrib/Sun/Solaris/Privilege/Privilege.xs
@@ -11,7 +11,7 @@
#include "perl.h"
#include "XSUB.h"
-#define IVCONST(s, c) newCONSTSUB(s, #c, newSViv((int)c));
+#define IVCONST(s, c) newCONSTSUB(s, #c, newSViv((int)(intptr_t)c));
#define POFF (sizeof ("PRIV_") - 1)
#define RETPRIVSET(set) \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment