diff --git a/PorygonSharp/EvalValues/EvalValue.cs b/PorygonSharp/EvalValues/EvalValue.cs index ad7bf3b..2a38f04 100644 --- a/PorygonSharp/EvalValues/EvalValue.cs +++ b/PorygonSharp/EvalValues/EvalValue.cs @@ -40,7 +40,7 @@ namespace PorygonSharp.EvalValues public bool EvaluateBool() { - return EvaluateBool(_handle); + return EvaluateBool(_handle) == 1; } public string EvaluateString() @@ -98,7 +98,7 @@ namespace PorygonSharp.EvalValues [DllImport("PorygonLang", EntryPoint = "EvaluateEvalValueFloat", CallingConvention = CallingConvention.Cdecl)] private static extern double EvaluateFloat(IntPtr ptr); [DllImport("PorygonLang", EntryPoint = "EvaluateEvalValueBool", CallingConvention = CallingConvention.Cdecl)] - private static extern bool EvaluateBool(IntPtr ptr); + private static extern byte EvaluateBool(IntPtr ptr); [DllImport("PorygonLang", EntryPoint = "GetEvalValueStringLength",CallingConvention = CallingConvention.Cdecl)] private static extern int GetStringLength(IntPtr ptr); diff --git a/PorygonSharp/libPorygonLang.so b/PorygonSharp/libPorygonLang.so index 7242a16..949082a 100755 Binary files a/PorygonSharp/libPorygonLang.so and b/PorygonSharp/libPorygonLang.so differ