diff options
author | Ashok Bhat <ashok.bhat@arm.com> | 2014-02-24 09:49:07 +0000 |
---|---|---|
committer | Ashok Bhat <ashok.bhat@arm.com> | 2014-02-24 14:33:52 +0000 |
commit | 01c26ea89d4bbea3cf550e9328742302dd9a2b25 (patch) | |
tree | 5fbe1808a3c78504d0b77f84b788e008486c4c93 /core/jni/android_opengl_GLES30.cpp | |
parent | bbfc08b3abc0934f67659f3238eb79dcac838c17 (diff) | |
download | frameworks_base-01c26ea89d4bbea3cf550e9328742302dd9a2b25.zip frameworks_base-01c26ea89d4bbea3cf550e9328742302dd9a2b25.tar.gz frameworks_base-01c26ea89d4bbea3cf550e9328742302dd9a2b25.tar.bz2 |
Use reinterpret_cast when an integer is cast to a pointer
Note that files changed in this patch have been generated
by running frameworks/native/opengl/tools/glgen/gen script.
Change-Id: Iff3ac2e804af41b9a6ec073fd65019c6806fe821
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Diffstat (limited to 'core/jni/android_opengl_GLES30.cpp')
-rw-r--r-- | core/jni/android_opengl_GLES30.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/jni/android_opengl_GLES30.cpp b/core/jni/android_opengl_GLES30.cpp index 4c62a75..8821352 100644 --- a/core/jni/android_opengl_GLES30.cpp +++ b/core/jni/android_opengl_GLES30.cpp @@ -111,7 +111,7 @@ getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *o getBasePointerID, buffer); if (pointer != 0L) { *array = NULL; - return (void *) (jint) pointer; + return reinterpret_cast<void*>(pointer); } *array = (jarray) _env->CallStaticObjectMethod(nioAccessClass, @@ -370,7 +370,7 @@ android_glDrawRangeElements__IIIIII (GLuint)end, (GLsizei)count, (GLenum)type, - (GLvoid *)offset + reinterpret_cast<GLvoid *>(offset) ); } @@ -419,7 +419,7 @@ android_glTexImage3D__IIIIIIIIII (GLint)border, (GLenum)format, (GLenum)type, - (GLvoid *)offset + reinterpret_cast<GLvoid *>(offset) ); } @@ -470,7 +470,7 @@ android_glTexSubImage3D__IIIIIIIIIII (GLsizei)depth, (GLenum)format, (GLenum)type, - (GLvoid *)offset + reinterpret_cast<GLvoid *>(offset) ); } @@ -534,7 +534,7 @@ android_glCompressedTexImage3D__IIIIIIIII (GLsizei)depth, (GLint)border, (GLsizei)imageSize, - (GLvoid *)offset + reinterpret_cast<GLvoid *>(offset) ); } @@ -585,7 +585,7 @@ android_glCompressedTexSubImage3D__IIIIIIIIIII (GLsizei)depth, (GLenum)format, (GLsizei)imageSize, - (GLvoid *)offset + reinterpret_cast<GLvoid *>(offset) ); } @@ -2134,7 +2134,7 @@ android_glVertexAttribIPointer__IIIII (GLint)size, (GLenum)type, (GLsizei)stride, - (GLvoid *)offset + reinterpret_cast<GLvoid *>(offset) ); } |