diff --git a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt index 70d18492f83968..e6952d149795ff 100644 --- a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt +++ b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt @@ -531,12 +531,12 @@ class WildcardFragment : Fragment() { private val TLV_MAP = mapOf( "UnsignedInt" to object:TlvWriterInterface { override fun generate(writer : TlvWriter, value: String, tag: chip.tlv.Tag) { - writer.put(tag, value.toUInt()) + writer.put(tag, value.toULong()) } }, "Int" to object:TlvWriterInterface { override fun generate(writer : TlvWriter, value: String, tag: chip.tlv.Tag) { - writer.put(tag, value.toInt()) + writer.put(tag, value.toLong()) } }, "Boolean" to object:TlvWriterInterface {