feat/tagfunc: fixed a warning about signedness from gcc.