summaryrefslogtreecommitdiff
path: root/src/runtime/dotNet
diff options
context:
space:
mode:
authorKrasimir Angelov <kr.angelov@gmail.com>2017-09-08 22:58:42 +0200
committerKrasimir Angelov <kr.angelov@gmail.com>2017-09-08 22:58:42 +0200
commit527d97fdd237ac4c471e6612e246a6752cb8638d (patch)
tree84c29fe96e90483aa064db1796a1588af874d692 /src/runtime/dotNet
parent71e6562eaa0efe417ff80c723aa8d582ba716d53 (diff)
fix the type signatures for the linearizer callbacks
Diffstat (limited to 'src/runtime/dotNet')
-rw-r--r--src/runtime/dotNet/Bracket.cs6
-rw-r--r--src/runtime/dotNet/Native.cs4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/dotNet/Bracket.cs b/src/runtime/dotNet/Bracket.cs
index 1fc4c0db7..6fd8756f8 100644
--- a/src/runtime/dotNet/Bracket.cs
+++ b/src/runtime/dotNet/Bracket.cs
@@ -64,17 +64,17 @@ namespace PGFSharp
stack.Peek ().AddChild (new StringChildBracket (str));
}
- private void BeginPhrase(IntPtr self, IntPtr cat, int fid, int lindex, IntPtr fun) {
+ private void BeginPhrase(IntPtr self, IntPtr cat, int fid, UIntPtr lindex, IntPtr fun) {
stack.Push (new Bracket ());
}
- private void EndPhrase(IntPtr self, IntPtr cat, int fid, int lindex, IntPtr fun) {
+ private void EndPhrase(IntPtr self, IntPtr cat, int fid, UIntPtr lindex, IntPtr fun) {
var b = stack.Pop ();
b.CatName = Native.NativeString.StringFromNativeUtf8 (cat);
b.FunName = Native.NativeString.StringFromNativeUtf8 (fun);
b.FId = fid;
- b.LIndex = lindex;
+ b.LIndex = (int) lindex;
if (stack.Count == 0)
final = b;
diff --git a/src/runtime/dotNet/Native.cs b/src/runtime/dotNet/Native.cs
index 5c750e010..bc90aca17 100644
--- a/src/runtime/dotNet/Native.cs
+++ b/src/runtime/dotNet/Native.cs
@@ -207,10 +207,10 @@ namespace PGFSharp
public delegate void LinFuncSymbolToken(IntPtr self, IntPtr token);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate void LinFuncBeginPhrase(IntPtr self, IntPtr cat, int fid, int lindex, IntPtr fun);
+ public delegate void LinFuncBeginPhrase(IntPtr self, IntPtr cat, int fid, UIntPtr lindex, IntPtr fun);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- public delegate void LinFuncEndPhrase(IntPtr self, IntPtr cat, int fid, int lindex, IntPtr fun);
+ public delegate void LinFuncEndPhrase(IntPtr self, IntPtr cat, int fid, UIntPtr lindex, IntPtr fun);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void LinFuncSymbolNonexistant(IntPtr self);