chiark / gitweb /
use of int and overflow review
[chiark-tcl.git] / hbytes / ulongs.c
index 5ab364ef33d248f788f8fe737323ded0ab9fe310..f6afa3f6c5a1b5279749e5b38125c250980af655 100644 (file)
@@ -281,10 +281,7 @@ static void ulong_t_ustr(Tcl_Obj *o) {
   char buf[9];
 
   val= *(const uint32_t*)&o->internalRep.longValue;
-
-  assert(val <= 0xffffffffUL);
   snprintf(buf,sizeof(buf), "%08lx", (unsigned long)val);
-
   cht_obj_updatestr_vstringls(o, buf, sizeof(buf)-1, (char*)0);
 }