summaryrefslogtreecommitdiffstats
path: root/camera/EmulatedCamera.cpp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-06-17 21:29:06 -0700
committerColin Cross <ccross@android.com>2014-06-18 11:05:20 -0700
commit3725c7c982eac52ec64a625e82f306822452941c (patch)
treee6076326e768c79945ce2d857851a9121bb47bdc /camera/EmulatedCamera.cpp
parenteed789f036cbcedf2fa96ae3e273c2234102d340 (diff)
downloadandroid_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-xcamera/EmulatedCamera.cpp2
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) {