| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ using v8::String; | |||
| 20 | 20 | Local<String> MainSource(Environment* env) { | |
| 21 | 21 | return String::NewFromUtf8( | |
| 22 | 22 | env->isolate(), reinterpret_cast<const char*>(node_native), | |
| 23 | - NewStringType::kNormal, sizeof(node_native) - 1).ToLocalChecked(); | ||
| 23 | + NewStringType::kNormal, sizeof(node_native)).ToLocalChecked(); | ||
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | 26 | void DefineJavaScript(Environment* env, Local<Object> target) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ | |||
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | 44 | def ToCArray(filename, lines): | |
| 45 | - return ','.join(str(ord(c)) for c in lines + '\0') | ||
| 45 | + return ','.join(str(ord(c)) for c in lines) | ||
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | 48 | def CompressScript(lines, do_jsmin): | |
@@ -221,7 +221,7 @@ def ReadMacros(lines): | |||
| 221 | 221 | ||
| 222 | 222 | ||
| 223 | 223 | NATIVE_DECLARATION = """\ | |
| 224 | - { "%(id)s", %(escaped_id)s_native, sizeof(%(escaped_id)s_native)-1 }, | ||
| 224 | + { "%(id)s", %(escaped_id)s_native, sizeof(%(escaped_id)s_native) }, | ||
| 225 | 225 | """ | |
| 226 | 226 | ||
| 227 | 227 | SOURCE_DECLARATION = """\ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments