From 2275abc95f65c364acefa36b6b2079caad305756 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Mon, 27 Aug 2018 08:31:22 +0900 Subject: Fix mistake of comparison Change-Id: Ifab9782c204c523df33bfb2d82939f30243672f7 Signed-off-by: Kazumasa Mitsunari --- src/wm_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wm_layer.cpp') diff --git a/src/wm_layer.cpp b/src/wm_layer.cpp index af258e4..6131165 100644 --- a/src/wm_layer.cpp +++ b/src/wm_layer.cpp @@ -114,7 +114,7 @@ WMLayer::WMLayer(json_object* j) : before_state(), state() int end = jh::getIntFromJson(j, "id_range_end"); string name = layer_name; - if (layer_name || type || begin >=0 || end >=0) + if (layer_name || type || !begin < 0 || end < 0) { HMI_ERROR("Parse Error!!"); } -- cgit 1.2.3-korg