Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing ioctl on 32bit arches.

Trying the ioctl tests on ppc netted a problem - seems that even though
I'm casting cmd to "unsigned int", unless I use "newSVuv" instead of
"newSViv", it ends up signed again anyway.
  • Loading branch information...
commit 27cfb2d8be6e236581906ac4a0dfdbc770ea7a80 1 parent e6ca930
@demonfoo demonfoo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Fuse.xs
2  Fuse.xs
@@ -1489,7 +1489,7 @@ int _PLfuse_ioctl(const char *file, int cmd, void *arg,
/* I don't know why cmd is a signed int in the first place;
* casting as unsigned so stupid tricks don't have to be done on
* the perl side */
- XPUSHs(sv_2mortal(newSViv((unsigned int)cmd)));
+ XPUSHs(sv_2mortal(newSVuv((unsigned int)cmd)));
if (_IOC_DIR(cmd) & _IOC_WRITE)
XPUSHs(sv_2mortal(newSVpvn(data, _IOC_SIZE(cmd))));
Please sign in to comment.
Something went wrong with that request. Please try again.