X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/954f0e552e0d08f00fe962dd3bc9c1a324841aa2..a2d002aadb85c6411b55e3966247efb21eeff2b8:/binipstuff.pas

diff --git a/binipstuff.pas b/binipstuff.pas
index 94a0c03..1cfa34d 100644
--- a/binipstuff.pas
+++ b/binipstuff.pas
@@ -4,6 +4,10 @@
   ----------------------------------------------------------------------------- }
 unit binipstuff;
 
+{$ifdef fpc}
+{$mode delphi}
+{$endif}
+
 interface
 
 {$include lcoreconfig.inc}
@@ -14,9 +18,6 @@ uses
 {$endif}
   pgtypes;
 
-{$ifdef fpc}
-  {$mode delphi}
-{$endif}
 {$ifdef cpu386}{$define i386}{$endif}
 {$ifdef i386}{$define ENDIAN_LITTLE}{$endif}
 
@@ -384,6 +385,13 @@ begin
       end;
     end;
   end;
+
+  {run length atleast 2 0 words}
+  if (runlength = 1) then begin
+    runlength := 0;
+    runbegin := 0;
+  end;
+
   result := '';
   for a := 0 to runbegin-1 do begin
     if (a <> 0) then result := result + ':';