Skip to content
Browse files

Fix a bug in CheckFlags

  • Loading branch information...
1 parent b709bcb commit 48768de95a566affa7157010a3f41e604d6fb280 @jmendeth jmendeth committed Jul 25, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 src/robotskirt.cc
View
2 package.json
@@ -2,7 +2,7 @@
, "description": "A node wrapper for the awesome C markdown parsing library, sundown."
, "tags": ["sundown", "upskirt", "robot", "markdown", "mkd"]
, "author" : "Ben Mills <ben@bmdev.org>"
-, "version": "2.1.0"
+, "version": "2.1.1"
, "lib": "./build/Release"
, "main": "./index.js"
, "scripts": { "publish": "node-waf configure build" }
View
4 src/robotskirt.cc
@@ -106,7 +106,7 @@ unsigned int CheckFlags(Handle<Value> hdl) {
unsigned int ret = 0;
Handle<Array> array = Handle<Array>::Cast(hdl);
for (uint32_t i=0; i<array->Length(); i++)
- ret |= CheckInt(array->Get(1));
+ ret |= CheckInt(array->Get(i));
return ret;
}
return CheckInt(hdl);
@@ -702,7 +702,7 @@ extern "C" {
target->Set(String::NewSymbol("markdownVersion"), mv->GetFunction());
//Robotskirt version
- target->Set(String::NewSymbol("version"), newVersionInstance(ver->GetFunction(), 2,1,0 ));
+ target->Set(String::NewSymbol("version"), newVersionInstance(ver->GetFunction(), 2,1,1 ));
//RENDERER class
Persistent<FunctionTemplate> rend = initRenderer(target);

0 comments on commit 48768de

Please sign in to comment.
Something went wrong with that request. Please try again.