Skip to content

Commit

Permalink
master - mdrew: fixed jni casting bug in socket io
Browse files Browse the repository at this point in the history
  • Loading branch information
mitdre committed Apr 10, 2018
1 parent b179c2b commit ab92027
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
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
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
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 ab92027

Please sign in to comment.