diff options
author | Jimmy Huang <jimmy.huang@intel.com> | 2017-03-24 15:12:10 -0700 |
---|---|---|
committer | Geoff Gustafson <geoff@linux.intel.com> | 2017-03-27 08:12:33 -0700 |
commit | 00a76112248652e2fdadeb1336c438d8f8b11050 (patch) | |
tree | 3fca072da4bdaab1e1137ac4c1288fc56c6317a7 /src/main.c | |
parent | 157ab89975a6c6fe864192347b834e75104f52aa (diff) |
[snapshot] Fixed bytecode array bug
Since we storing unint32_t instead of uint8_t, there's
bug that we are creating an array that's 4 times the
needed size with a bunch of 0s, this patch fixes this issue
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ const uint32_t snapshot_bytecode[] = { #include "zjs_snapshot_gen.h" }; -const size_t snapshot_len = sizeof(snapshot_bytecode) / sizeof(uint32_t); +const size_t snapshot_len = sizeof(snapshot_bytecode); #else const char script_jscode[] = { #include "zjs_script_gen.h" |