TS-1892: fix pagesize integer truncation bug