Skip to content

Commit

Permalink
Merge pull request #20 from mitdre/master
Browse files Browse the repository at this point in the history
master - mdrew: fixed jni casting bug in socket io
  • Loading branch information
brian-armstrong committed Apr 14, 2018
2 parents b179c2b + ab92027 commit f12f75e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion quiet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
buildToolsVersion "26.0.2"

defaultConfig {
minSdkVersion 14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
public class SocketInputStream extends InputStream {
private native int nativeAvailable() throws IOException;
private native void nativeClose() throws IOException;
private native int nativeRead(byte[] buf, int off, int len) throws IOException;
private native int nativeRead(byte[] buf, long off, long len) throws IOException;

private int fd;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class SocketOutputStream extends OutputStream {
private native void nativeClose() throws IOException;
private native void nativeWrite(byte[] buf, int off, int len) throws IOException;
private native void nativeWrite(byte[] buf, long off, long len) throws IOException;

private int fd;

Expand Down

0 comments on commit f12f75e

Please sign in to comment.