bitcoinjs / fast-dat-parser

Superfast blockchain parser for stats
MIT License
74 stars 26 forks source link

32bit build errors #17

Open dcousens opened 5 years ago

dcousens commented 5 years ago

Ref https://github.com/bitcoinjs/fast-dat-parser/issues/16#issuecomment-421804547

dcousens commented 5 years ago

include/bitcoin.hpp:114:33: error: conversion to ‘size_t {aka unsigned int}’ from ‘long long unsigned int’ may alter its value [-Werror=conversion]

This is a bit harder without a cast... I suspect I will need to throw if size_t isn't enough for the variable integer. (although this is never likely to be an actual problem... 2**32 transactions is quite a lot!)