summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-06-15 16:19:17 -0700
committerMuller, Alexander (A.) <amulle19@ford.com>2016-06-15 16:19:17 -0700
commite704ce71ca46e23cc2740c023be0a4897b28a748 (patch)
treec557406a3da5ae3a581c173649c103986933e8b5
parent3ca1d55563b855e5b6a84ce0e75e85d02b551b6d (diff)
downloadsdl_ios-e704ce71ca46e23cc2740c023be0a4897b28a748.tar.gz
Using ULONG_MAX instead of 0 for our unsigned longs in const struct values.
-rw-r--r--SmartDeviceLink/SDLPinchGesture.m2
-rw-r--r--SmartDeviceLink/SDLTouch.m2
2 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLPinchGesture.m b/SmartDeviceLink/SDLPinchGesture.m
index d1bcb4b8c..0011f83c4 100644
--- a/SmartDeviceLink/SDLPinchGesture.m
+++ b/SmartDeviceLink/SDLPinchGesture.m
@@ -17,7 +17,7 @@ SDLPinchGesture SDLPinchGestureMake(SDLTouch firstTouch, SDLTouch secondTouch) {
return pinchGesture;
}
-const SDLPinchGesture SDLPinchGestureZero = {SDLTouchZero, SDLTouchZero, -0, {0, 0}};
+const SDLPinchGesture SDLPinchGestureZero = {{ULONG_MAX, {0, 0}, ULONG_MAX}, {ULONG_MAX, {0, 0}, ULONG_MAX}, 0, {0, 0}};
SDLPinchGesture SDLPinchGestureUpdateFromTouch(SDLPinchGesture pinch, SDLTouch touch) {
switch (touch.identifier) {
diff --git a/SmartDeviceLink/SDLTouch.m b/SmartDeviceLink/SDLTouch.m
index 2e6f0a494..5c51f3457 100644
--- a/SmartDeviceLink/SDLTouch.m
+++ b/SmartDeviceLink/SDLTouch.m
@@ -8,7 +8,7 @@
#include "SDLTouch.h"
-SDLTouch const SDLTouchZero = {0, {0, 0}, 0};
+SDLTouch const SDLTouchZero = {ULONG_MAX, {0, 0}, ULONG_MAX};
SDLTouch SDLTouchMake(unsigned long identifier, float x, float y, unsigned long timeStamp) {
SDLTouch touch;