diff options
author | ngld <ngld@tproxy.de> | 2013-09-25 17:33:52 +0200 |
---|---|---|
committer | ngld <ngld@tproxy.de> | 2013-09-25 17:33:52 +0200 |
commit | 8481d3023417529839067af4dca9c5484b69c309 (patch) | |
tree | 78dfc5ee4cd1eab77b9da5710ff6754a2489c087 /src/library.js | |
parent | e9705b2fcb179fd16b60ab35c31bff87a5704743 (diff) |
Replace references to QUANTUM_SIZE with C_STRUCTS equivalents.
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js index 2e2298ec..7a144951 100644 --- a/src/library.js +++ b/src/library.js @@ -5274,12 +5274,12 @@ LibraryManager.library = { return time1 - time0; }, - // Statically allocated time struct. (TODO: Shouldn't C_STRUCTS.tm.__size__ be used here?) - __tm_current: 'allocate({{{ Runtime.QUANTUM_SIZE }}}*26, "i8", ALLOC_STATIC)', + // Statically allocated time struct. + __tm_current: 'allocate({{{ C_STRUCTS.tm.__size__ }}}, "i8", ALLOC_STATIC)', // Statically allocated timezone string. We only use GMT as a timezone. __tm_timezone: 'allocate(intArrayFromString("GMT"), "i8", ALLOC_STATIC)', // Statically allocated time strings. - __tm_formatted: 'allocate({{{ Runtime.QUANTUM_SIZE }}}*26, "i8", ALLOC_STATIC)', + __tm_formatted: 'allocate({{{ C_STRUCTS.tm.__size__ }}}, "i8", ALLOC_STATIC)', mktime__deps: ['tzset'], mktime: function(tmPtr) { |