From 9e3b686dedcf0e7a463453e6407ee78d9a43c51f Mon Sep 17 00:00:00 2001 From: yerden Date: Mon, 2 Apr 2018 21:51:00 +0600 Subject: [PATCH] lang: add Hash() on bool argument (#34) --- Lang/Hash.mqh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lang/Hash.mqh b/Lang/Hash.mqh index a334aaa..eb14fdc 100644 --- a/Lang/Hash.mqh +++ b/Lang/Hash.mqh @@ -203,6 +203,13 @@ int Hash(const char value) //+------------------------------------------------------------------+ //| expand to int | //+------------------------------------------------------------------+ +int Hash(const bool value) + { + return (int)value; + } +//+------------------------------------------------------------------+ +//| expand to int | +//+------------------------------------------------------------------+ int Hash(const uchar value) { return value;