chiark / gitweb /
copyright dates
[chiark-tcl.git] / hbytes / ulongs.c
index 0f99db3eb1acfa043778a8b3d1b54c403086bbd9..df93db6cad2703e8e8f0e8acdbf0823a5f233ef6 100644 (file)
@@ -1,4 +1,21 @@
 /*
+ * hbytes - hex-stringrep efficient byteblocks for Tcl
+ * Copyright 2006-2012 Ian Jackson
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
  */
 
 #include "chiark_tcl_hbytes.h"
@@ -264,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);
 }