fixed error in cppgen/typeBitWidth()
error introduced in 848b37f7446454a916bb76431ce8bbd182d6d243, causing examples/simplesharedhw to fail