diff options
author | Colin Cross <ccross@android.com> | 2014-06-17 21:29:06 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-06-18 11:05:20 -0700 |
commit | 3725c7c982eac52ec64a625e82f306822452941c (patch) | |
tree | e6076326e768c79945ce2d857851a9121bb47bdc /camera/EmulatedCamera.cpp | |
parent | eed789f036cbcedf2fa96ae3e273c2234102d340 (diff) | |
download | android_device_generic_goldfish-3725c7c982eac52ec64a625e82f306822452941c.tar.gz android_device_generic_goldfish-3725c7c982eac52ec64a625e82f306822452941c.tar.bz2 android_device_generic_goldfish-3725c7c982eac52ec64a625e82f306822452941c.zip |
goldfish: camera: fix 64-bit warnings
Change-Id: If15f27505e3849406769b7f03cb77ea8dec86e70
Diffstat (limited to 'camera/EmulatedCamera.cpp')
-rwxr-xr-x | camera/EmulatedCamera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/EmulatedCamera.cpp b/camera/EmulatedCamera.cpp index 28aede1..096c5b2 100755 --- a/camera/EmulatedCamera.cpp +++ b/camera/EmulatedCamera.cpp @@ -1016,7 +1016,7 @@ static void PrintParamDiff(const CameraParameters& current, /* Divided with ';' */ const char* next = strchr(wrk, ';'); while (next != NULL) { - snprintf(tmp, sizeof(tmp), "%.*s", next-wrk, wrk); + snprintf(tmp, sizeof(tmp), "%.*s", (int)(intptr_t)(next-wrk), wrk); /* in the form key=value */ char* val = strchr(tmp, '='); if (val != NULL) { |