Commits

Liam Staskawicz  committed 0edb7c7

* must be explicit with minus as of fantom 1.0.56

  • Participants
  • Parent commits 4b421ac

Comments (0)

Files changed (1)

File fan/Cursor.fan

     res := coll.db.command(cmd)
     if (DB.cmdOk(res)) {
       c := (res["n"] as Float).toInt
-      return c.min(opts.get("limit", c)) - opts.get("skip", 0)
+      return c.min(opts.get("limit", c)).minus(opts.get("skip", 0))
     } 
     else if (res["errmsg"] == "ns missing")
       return 0