aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-02-24 12:01:06 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-02-24 12:46:03 +0100
commit8c8b2ecee7796550bf044e5494e48f019778a867 (patch)
treef07ec721adf25f70df6df098127f02c98bdb5ed7
parentad196087b3cb6f0cac9f805e120c90bbe52d5fec (diff)
downloadPROJ-8c8b2ecee7796550bf044e5494e48f019778a867.tar.gz
PROJ-8c8b2ecee7796550bf044e5494e48f019778a867.zip
jniproj.cpp: fix compiler warning
-rw-r--r--src/jniproj.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jniproj.cpp b/src/jniproj.cpp
index 59b5b2a0..6f441529 100644
--- a/src/jniproj.cpp
+++ b/src/jniproj.cpp
@@ -279,7 +279,7 @@ JNIEXPORT jcharArray JNICALL Java_org_proj4_PJ_getAxisDirections
{
PJ *pj = getPJ(env, object);
if (pj) {
- int length = strlen(pj->axis);
+ int length = static_cast<int>(strlen(pj->axis));
jcharArray array = env->NewCharArray(length);
if (array) {
jchar* axis = env->GetCharArrayElements(array, nullptr);