Skip to content

Commit

Permalink
fixup argument checkout to avoid msvc 'unsafe use of type' warning - …
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Oct 10, 2012
1 parent 0dc3911 commit 89163fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mapnik_map.cpp
Expand Up @@ -994,7 +994,7 @@ Handle<Value> Map::loadSync(const Arguments& args)
Handle<Value> Map::fromStringSync(const Arguments& args) Handle<Value> Map::fromStringSync(const Arguments& args)
{ {
HandleScope scope; HandleScope scope;
if (!args.Length() >= 1) { if (args.Length() < 1) {
return ThrowException(Exception::TypeError( return ThrowException(Exception::TypeError(
String::New("Accepts 2 arguments: stylesheet string and an optional options"))); String::New("Accepts 2 arguments: stylesheet string and an optional options")));
} }
Expand Down Expand Up @@ -1628,7 +1628,7 @@ Handle<Value> Map::renderFile(const Arguments& args)
{ {
HandleScope scope; HandleScope scope;


if (!args.Length() >= 1 || !args[0]->IsString()) if (args.Length() < 1 || !args[0]->IsString())
return ThrowException(Exception::TypeError( return ThrowException(Exception::TypeError(
String::New("first argument must be a path to a file to save"))); String::New("first argument must be a path to a file to save")));


Expand Down Expand Up @@ -1803,7 +1803,7 @@ Handle<Value> Map::renderSync(const Arguments& args)
{ {
HandleScope scope; HandleScope scope;


if (!args.Length() >= 1 || !args[0]->IsString()) if (args.Length() < 1 || !args[0]->IsString())
return ThrowException(Exception::TypeError( return ThrowException(Exception::TypeError(
String::New("argument must be a format string"))); String::New("argument must be a format string")));


Expand Down Expand Up @@ -1867,7 +1867,7 @@ Handle<Value> Map::renderSync(const Arguments& args)
Handle<Value> Map::renderFileSync(const Arguments& args) Handle<Value> Map::renderFileSync(const Arguments& args)
{ {
HandleScope scope; HandleScope scope;
if (!args.Length() >= 1 || !args[0]->IsString()) if (args.Length() < 1 || !args[0]->IsString())
return ThrowException(Exception::TypeError( return ThrowException(Exception::TypeError(
String::New("first argument must be a path to a file to save"))); String::New("first argument must be a path to a file to save")));


Expand Down

0 comments on commit 89163fb

Please sign in to comment.