From b3958d466223ca81ba59253dda9686df5e73c785 Mon Sep 17 00:00:00 2001 From: Joseph Lozano Date: Tue, 4 Feb 2020 13:57:52 -0500 Subject: [PATCH] use byte_size guard --- lib/pollution/generators/string.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pollution/generators/string.ex b/lib/pollution/generators/string.ex index 0ca6a06..4316b0e 100644 --- a/lib/pollution/generators/string.ex +++ b/lib/pollution/generators/string.ex @@ -114,7 +114,7 @@ defmodule Pollution.Generator.String do def shrink_one(sp = %SP{low: low, current: current}) - when :erlang.size(current) == low do + when byte_size(current) == low do %SP{ sp | done: true } end