<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -81,7 +81,7 @@ ptrace_peekdata(VALUE self, VALUE addr)
 static VALUE
 ptrace_peekuser(VALUE self, VALUE addr)
 {
-    return ptrace_peek(self, addr, PTRACE_PEEKUSER);
+    return ptrace_peek(self, PTRACE_PEEKUSER, addr);
 }
 
 static VALUE
@@ -89,10 +89,10 @@ ptrace_poke(VALUE self, enum __ptrace_request request, VALUE addr, VALUE data)
 {
     pid_t pid = get_pid(self);
     void *addr_ptr = (void *)NUM2ULONG(addr);
-    long long_data = (long)NUM2ULONG(data);
+    void *long_data = (void *)NUM2LONG(data);
     long ret;
 
-    CALL_PTRACE(ret, request, pid, addr_ptr, &amp;long_data);
+    CALL_PTRACE(ret, request, pid, addr_ptr, long_data);
 
     return Qnil;
 }</diff>
      <filename>ptrace.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e7a11fba74b2ca8a680da7b6f1b2419cf3c97472</id>
    </parent>
  </parents>
  <author>
    <name>SASADA Koichi</name>
    <email>ko1@atdot.net</email>
  </author>
  <url>http://github.com/ko1/ruby-ptrace/commit/2fcb164049fa725299980bf6e4026501a8b8f4c2</url>
  <id>2fcb164049fa725299980bf6e4026501a8b8f4c2</id>
  <committed-date>2009-05-19T05:39:17-07:00</committed-date>
  <authored-date>2009-05-19T05:39:17-07:00</authored-date>
  <message>fix parameter order of ptrace_peek.
reported by Domenico De Felice.</message>
  <tree>3bdbd3b31d83970e2a6e34fe5c4491981554d975</tree>
  <committer>
    <name>SASADA Koichi</name>
    <email>ko1@atdot.net</email>
  </committer>
</commit>
