Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
float is number in js
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed May 15, 2013
1 parent ce1903f commit 3389b3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/sphinxapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ SphinxClient.prototype.SetServer = function (host, port) {
};
SphinxClient.prototype.SetConnectTimeout = function (timeout ) {
var self = this
assert.equal(typeof timeout, 'float')
assert.equal(typeof timeout, 'number')
self._timeout = Math.max(0.001, timeout);
};
SphinxClient.prototype.SetLimits = function (offset, limit, maxmatches, cutoff) {
Expand Down Expand Up @@ -392,8 +392,8 @@ SphinxClient.prototype.SetGeoAnchor = function (attrlat, attrlong, latitude, lon
var self = this
assert.equal(typeof attrlat, 'string')
assert.equal(typeof attrlong, 'string')
assert.equal(typeof latitude, 'float')
assert.equal(typeof longitude, 'float')
assert.equal(typeof latitude, 'number')
assert.equal(typeof longitude, 'number')
self._anchor['attrlat'] = attrlat
self._anchor['attrlong'] = attrlong
self._anchor['lat'] = latitude
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sphinxapi",
"version": "1.0.10",
"version": "1.0.11",
"author": "Nicolas Thouvenin <[email protected]>",
"contributors": [
{
Expand Down

0 comments on commit 3389b3e

Please sign in to comment.