3 * Copyright (C) INRIA - METALAU Project <scicos@inria.fr>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 * See the file ./license.txt
21 /*--------------------------------------------------------------------------*/
24 #include "scicos_block4.h"
26 #include "localization.h"
28 /*--------------------------------------------------------------------------*/
29 void convert(scicos_block *block,int flag)
31 int m = 0,n = 0,i = 0;
33 double v = 0.,w = 0.,k = 0.;
35 m=GetInPortRows(block,1);
36 n=GetInPortCols(block,1);
37 ipar=GetIparPtrs(block);
39 if ((flag==1)|(flag==6))
43 void *u = NULL,*y = NULL;
45 so=GetSizeOfOut(block,1);
46 u=GetInPortPtrs(block,1);
47 y=GetOutPortPtrs(block,1);
54 u=GetRealInPortPtrs(block,1);
55 y=Getint32OutPortPtrs(block,1);
59 w=v-(double)((int)(v/k))*k;
61 {if (w>=0) w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
62 else w=-(-(k/2)+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
69 u=GetRealInPortPtrs(block,1);
70 y=Getint16OutPortPtrs(block,1);
74 w=v-(double)((int)(v/k))*k;
76 {if (w>=0) w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
77 else w=-(-(k/2)+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
84 u=GetRealInPortPtrs(block,1);
85 y=Getint8OutPortPtrs(block,1);
89 w=v-(double)((int)(v/k))*k;
91 {if (w>=0) w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
92 else w=-(-(k/2)+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
98 unsigned long *y = NULL;
99 u=GetRealInPortPtrs(block,1);
100 y=Getuint32OutPortPtrs(block,1);
104 w=v-(double)((int)(v/k))*k;
105 y[i]=(unsigned long)w;}
109 unsigned short *y = NULL;
110 u=GetRealInPortPtrs(block,1);
111 y=Getuint16OutPortPtrs(block,1);
115 w=v-(double)((int)(v/k))*k;
116 y[i]=(unsigned short)w;}
120 unsigned char *y = NULL;
121 u=GetRealInPortPtrs(block,1);
122 y=Getuint8OutPortPtrs(block,1);
126 w=v-(double)((int)(v/k))*k;
127 y[i]=(unsigned char)w;}
132 u=Getint32InPortPtrs(block,1);
133 y=GetRealOutPortPtrs(block,1);
134 for (i=0;i<m*n;i++) y[i]=(double) u[i];
139 u=Getint32InPortPtrs(block,1);
140 y=Getint16OutPortPtrs(block,1);
144 w=v-(double)((int)(v/k))*k;
146 {if (w>=0) w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
147 else w=-(-(k/2)+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
154 u=Getint32InPortPtrs(block,1);
155 y=Getint8OutPortPtrs(block,1);
159 w=v-(double)((int)(v/k))*k;
161 {if (w>=0) w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
162 else w=-(-(k/2)+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
168 unsigned short *y = NULL;
169 u=Getint32InPortPtrs(block,1);
170 y=Getuint16OutPortPtrs(block,1);
174 w=v-(double)((int)(v/k))*k;
175 y[i]=(unsigned short)w;}
179 unsigned char *y = NULL;
180 u=Getint32InPortPtrs(block,1);
181 y=Getuint8OutPortPtrs(block,1);
185 w=v-(double)((int)(v/k))*k;
186 y[i]=(unsigned char)w;}
191 u=Getint16InPortPtrs(block,1);
192 y=GetRealOutPortPtrs(block,1);
193 for (i=0;i<m*n;i++) y[i]=(double) u[i];
198 u=Getint16InPortPtrs(block,1);
199 y=Getint32OutPortPtrs(block,1);
206 u=Getint16InPortPtrs(block,1);
207 y=Getint8OutPortPtrs(block,1);
211 w=v-(double)((int)(v/k))*k;
213 {if (w>=0) w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
214 else w=-(-(k/2)+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
220 unsigned long *y = NULL;
221 u=Getint16InPortPtrs(block,1);
222 y=Getuint32OutPortPtrs(block,1);
224 {y[i]=(unsigned long)u[i];}
228 unsigned char *y = NULL;
229 u=Getint16InPortPtrs(block,1);
230 y=Getuint8OutPortPtrs(block,1);
234 w=v-(double)((int)(v/k))*k;
235 y[i]=(unsigned char)w;}
240 u=Getint8InPortPtrs(block,1);
241 y=GetRealOutPortPtrs(block,1);
242 for (i=0;i<m*n;i++) y[i]=(double) u[i];
247 u=Getint8InPortPtrs(block,1);
248 y=Getint32OutPortPtrs(block,1);
255 u=Getint8InPortPtrs(block,1);
256 y=Getint16OutPortPtrs(block,1);
262 unsigned long *y = NULL;
263 u=Getint8InPortPtrs(block,1);
264 y=Getuint32OutPortPtrs(block,1);
266 {y[i]=(unsigned long)u[i];}
270 unsigned short *y = NULL;
271 u=Getint8InPortPtrs(block,1);
272 y=Getuint16OutPortPtrs(block,1);
274 {y[i]=(unsigned short)u[i];}
277 unsigned long *u = NULL;
279 u=Getuint32InPortPtrs(block,1);
280 y=GetRealOutPortPtrs(block,1);
281 for (i=0;i<m*n;i++) y[i]=(double) u[i];
284 unsigned long *u = NULL;
286 u=Getuint32InPortPtrs(block,1);
287 y=Getint16OutPortPtrs(block,1);
291 w=v-(double)((int)(v/k))*k;
293 { w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
298 unsigned long *u = NULL;
300 u=Getuint32InPortPtrs(block,1);
301 y=Getint8OutPortPtrs(block,1);
305 w=v-(double)((int)(v/k))*k;
307 {w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
312 unsigned long *u = NULL;
313 unsigned short *y = NULL;
314 u=Getuint32InPortPtrs(block,1);
315 y=Getuint16OutPortPtrs(block,1);
319 w=v-(double)((int)(v/k))*k;
320 y[i]=(unsigned short)w;}
323 unsigned long *u = NULL;
324 unsigned char *y = NULL;
325 u=Getuint32InPortPtrs(block,1);
326 y=Getuint8OutPortPtrs(block,1);
330 w=v-(double)((int)(v/k))*k;
331 y[i]=(unsigned char)w;}
334 unsigned short *u = NULL;
336 u=Getuint16InPortPtrs(block,1);
337 y=GetRealOutPortPtrs(block,1);
338 for (i=0;i<m*n;i++) y[i]=(double) u[i];
341 unsigned short *u = NULL;
343 u=Getuint16InPortPtrs(block,1);
344 y=Getint32OutPortPtrs(block,1);
349 unsigned short *u = NULL;
351 u=Getuint16InPortPtrs(block,1);
352 y=Getint8OutPortPtrs(block,1);
356 w=v-(double)((int)(v/k))*k;
358 {w=(-k/2+fabs(w-(double)((int)(w/(k/2)))*(k/2)));
363 unsigned short *u = NULL;
364 unsigned long *y = NULL;
365 u=Getuint16InPortPtrs(block,1);
366 y=Getuint32OutPortPtrs(block,1);
368 {y[i]=(unsigned long)u[i];}
371 unsigned short *u = NULL;
372 unsigned char *y = NULL;
373 u=Getuint16InPortPtrs(block,1);
374 y=Getuint8OutPortPtrs(block,1);
378 w=v-(double)((int)(v/k))*k;
379 y[i]=(unsigned char)w;}
382 unsigned char *u = NULL;
384 u=Getuint8InPortPtrs(block,1);
385 y=GetRealOutPortPtrs(block,1);
386 for (i=0;i<m*n;i++) y[i]=(double) u[i];
389 unsigned char *u = NULL;
391 u=Getuint8InPortPtrs(block,1);
392 y=Getint32OutPortPtrs(block,1);
397 unsigned char *u = NULL;
399 u=Getuint8InPortPtrs(block,1);
400 y=Getint16OutPortPtrs(block,1);
405 unsigned char *u = NULL;
406 unsigned long *y = NULL;
407 u=Getuint8InPortPtrs(block,1);
408 y=Getuint32OutPortPtrs(block,1);
410 {y[i]=(unsigned long)u[i];}
413 unsigned char *u = NULL;
414 unsigned short *y = NULL;
415 u=Getuint8InPortPtrs(block,1);
416 y=Getuint16OutPortPtrs(block,1);
418 {y[i]=(unsigned short)u[i];}
423 u=GetRealInPortPtrs(block,1);
424 y=Getint32OutPortPtrs(block,1);
428 {y[i]=(long)(k/2-1);}
429 else if (u[i]<-(k/2))
431 else {y[i]=(long)(u[i]);}
437 u=GetRealInPortPtrs(block,1);
438 y=Getint16OutPortPtrs(block,1);
442 {y[i]=(short)(k/2-1);}
443 else if (u[i]<-(k/2))
444 {y[i]=-(short)(k/2);}
445 else {y[i]=(short)(u[i]);}
451 u=GetRealInPortPtrs(block,1);
452 y=Getint8OutPortPtrs(block,1);
456 {y[i]=(char)(k/2-1);}
457 else if (u[i]<-(k/2))
459 else {y[i]=(char)(u[i]);}
464 unsigned long *y = NULL;
465 u=GetRealInPortPtrs(block,1);
466 y=Getuint32OutPortPtrs(block,1);
470 {y[i]=(unsigned long)(k-1);}
473 else {y[i]=(unsigned long)(u[i]);}
478 unsigned short *y = NULL;
479 u=GetRealInPortPtrs(block,1);
480 y=Getuint16OutPortPtrs(block,1);
484 {y[i]=(unsigned short)(k-1);}
487 else {y[i]=(unsigned short)(u[i]);}
492 unsigned char *y = NULL;
493 u=GetRealInPortPtrs(block,1);
494 y=Getuint8OutPortPtrs(block,1);
498 {y[i]=(unsigned char)(k-1);}
501 else {y[i]=(unsigned char)(u[i]);}
507 u=Getint32InPortPtrs(block,1);
508 y=Getint16OutPortPtrs(block,1);
511 {if (u[i]>(long)(k/2-1))
512 {y[i]=(short)(k/2-1);}
513 else if (u[i]<-(long)(k/2))
514 {y[i]=-(short)(k/2);}
515 else {y[i]=(short)(u[i]);}
521 u=Getint32InPortPtrs(block,1);
522 y=Getint8OutPortPtrs(block,1);
525 {if (u[i]>(long)(k/2-1))
526 {y[i]=(char)(k/2-1);}
527 else if (u[i]<-(long)(k/2))
529 else {y[i]=(char)(u[i]);}
534 unsigned long *y = NULL;
535 u=Getint32InPortPtrs(block,1);
536 y=Getuint32OutPortPtrs(block,1);
540 else {y[i]=(unsigned long)(u[i]);}
545 unsigned short *y = NULL;
546 u=Getint32InPortPtrs(block,1);
547 y=Getuint16OutPortPtrs(block,1);
550 {if (u[i]>=(long)(k))
551 {y[i]=(unsigned short)(k-1);}
554 else {y[i]=(unsigned short)(u[i]);}
559 unsigned char *y = NULL;
560 u=Getint32InPortPtrs(block,1);
561 y=Getuint8OutPortPtrs(block,1);
565 {y[i]=(unsigned char)(k-1);}
568 else {y[i]=(unsigned char)(u[i]);}
574 u=Getint16InPortPtrs(block,1);
575 y=Getint8OutPortPtrs(block,1);
578 {if (u[i]>(short)(k/2-1))
579 {y[i]=(char)(k/2-1);}
580 else if (u[i]<-(short)(k/2))
582 else {y[i]=(char)(u[i]);}
587 unsigned long *y = NULL;
588 u=Getint16InPortPtrs(block,1);
589 y=Getuint32OutPortPtrs(block,1);
592 else y[i]=(unsigned long)u[i];}
596 unsigned short *y = NULL;
597 u=Getint16InPortPtrs(block,1);
598 y=Getuint16OutPortPtrs(block,1);
602 else {y[i]=(unsigned short)(u[i]);}
607 unsigned char *y = NULL;
608 u=Getint16InPortPtrs(block,1);
609 y=Getuint8OutPortPtrs(block,1);
613 {y[i]=(unsigned char)(k-1);}
616 else {y[i]=(unsigned char)(u[i]);}
621 unsigned long *y = NULL;
622 u=Getint8InPortPtrs(block,1);
623 y=Getuint32OutPortPtrs(block,1);
626 else y[i]=(unsigned long)u[i];}
630 unsigned short *y = NULL;
631 u=Getint8InPortPtrs(block,1);
632 y=Getuint16OutPortPtrs(block,1);
636 else {y[i]=(unsigned short)(u[i]);}
641 unsigned char *y = NULL;
642 u=Getint8InPortPtrs(block,1);
643 y=Getuint8OutPortPtrs(block,1);
647 else {y[i]=(unsigned char)(u[i]);}
652 unsigned long *u = NULL;
653 u=Getuint32InPortPtrs(block,1);
654 y=Getint32OutPortPtrs(block,1);
657 {if (u[i]>(unsigned long)(k/2-1))
658 {y[i]=(long)(k/2-1);}
659 else {y[i]=(long)(u[i]);}
663 unsigned long *u = NULL;
665 u=Getuint32InPortPtrs(block,1);
666 y=Getint16OutPortPtrs(block,1);
669 {if (u[i]>(unsigned long)(k/2-1))
670 {y[i]=(short)(k/2-1);}
671 else {y[i]=(short)(u[i]);}
675 unsigned long *u = NULL;
677 u=Getuint32InPortPtrs(block,1);
678 y=Getint8OutPortPtrs(block,1);
681 {if (u[i]>(unsigned long)(k/2-1))
682 {y[i]=(char)(k/2-1);}
683 else {y[i]=(char)(u[i]);}
687 unsigned long *u = NULL;
688 unsigned short *y = NULL;
689 u=Getuint32InPortPtrs(block,1);
690 y=Getuint16OutPortPtrs(block,1);
693 {if (u[i]>(unsigned long)(k/2-1))
694 {y[i]=(unsigned short)(k/2-1);}
695 else {y[i]=(unsigned short)(u[i]);}
699 unsigned long *u = NULL;
700 unsigned char *y = NULL;
701 u=Getuint32InPortPtrs(block,1);
702 y=Getuint8OutPortPtrs(block,1);
705 {if (u[i]>(unsigned long)(k/2-1))
706 {y[i]=(unsigned char)(k/2-1);}
707 else {y[i]=(unsigned char)(u[i]);}
711 unsigned short *u = NULL;
713 u=Getuint16InPortPtrs(block,1);
714 y=Getint16OutPortPtrs(block,1);
717 {if (u[i]>(unsigned short)(k/2-1))
718 {y[i]=(short)(k/2-1);}
719 else {y[i]=(short)(u[i]);}
723 unsigned short *u = NULL;
725 u=Getuint16InPortPtrs(block,1);
726 y=Getint8OutPortPtrs(block,1);
729 {if (u[i]>(unsigned short)(k/2-1))
730 {y[i]=(char)(k/2-1);}
731 else {y[i]=(char)(u[i]);}
735 unsigned short *u = NULL;
736 unsigned char *y = NULL;
737 u=Getuint16InPortPtrs(block,1);
738 y=Getuint8OutPortPtrs(block,1);
741 {if (u[i]>(unsigned short)(k/2-1))
742 {y[i]=(unsigned char)k/2-1;}
743 else {y[i]=(unsigned char)(u[i]);}
747 unsigned char *u = NULL;
749 u=Getuint8InPortPtrs(block,1);
750 y=Getint8OutPortPtrs(block,1);
753 {if (u[i]>(unsigned char)(k/2-1))
754 {y[i]=(char)(k/2-1);}
755 else {y[i]=(char)(u[i]);}
761 u=GetRealInPortPtrs(block,1);
762 y=Getint32OutPortPtrs(block,1);
765 {if ((u[i]>k/2-1) | (u[i]<-(k/2)))
767 {sciprint(_("overflow error"));
770 else {y[i]=(long)(u[i]);}
776 u=GetRealInPortPtrs(block,1);
777 y=Getint16OutPortPtrs(block,1);
780 {if ((u[i]>k/2-1) | (u[i]<-(k/2)))
782 {sciprint(_("overflow error"));
785 else {y[i]=(short)(u[i]);}
791 u=GetRealInPortPtrs(block,1);
792 y=Getint8OutPortPtrs(block,1);
795 {if ((u[i]>k/2-1) | (u[i]<-(k/2)))
797 {sciprint(_("overflow error"));
800 else {y[i]=(char)(u[i]);}
805 unsigned long *y = NULL;
806 u=GetRealInPortPtrs(block,1);
807 y=Getuint32OutPortPtrs(block,1);
810 {if ((u[i]>=k) | (u[i]<0))
812 {sciprint(_("overflow error"));
815 else {y[i]=(unsigned long)(u[i]);}
820 unsigned short *y = NULL;
821 u=GetRealInPortPtrs(block,1);
822 y=Getuint16OutPortPtrs(block,1);
825 {if ((u[i]>=k) | (u[i]<0))
827 {sciprint(_("overflow error"));
830 else {y[i]=(unsigned short)(u[i]);}
835 unsigned char *y = NULL;
836 u=GetRealInPortPtrs(block,1);
837 y=Getuint8OutPortPtrs(block,1);
840 {if ((u[i]>=k) | (u[i]<0))
842 {sciprint(_("overflow error"));
845 else {y[i]=(unsigned char)(u[i]);}
851 u=Getint32InPortPtrs(block,1);
852 y=Getint16OutPortPtrs(block,1);
855 {if ((u[i]>k/2-1) | (u[i]<-(k/2)))
857 {sciprint(_("overflow error"));
860 else {y[i]=(short)(u[i]);}
866 u=Getint32InPortPtrs(block,1);
867 y=Getint8OutPortPtrs(block,1);
870 {if ((u[i]>k/2-1) | (u[i]<-(k/2)))
872 {sciprint(_("overflow error"));
875 else {y[i]=(char)(u[i]);}
880 unsigned long *y = NULL;
881 u=Getint32InPortPtrs(block,1);
882 y=Getuint32OutPortPtrs(block,1);
886 {sciprint(_("overflow error"));
889 else {y[i]=(unsigned long)(u[i]);}
894 unsigned short *y = NULL;
895 u=Getint32InPortPtrs(block,1);
896 y=Getuint16OutPortPtrs(block,1);
899 {if ((u[i]>=k) | (u[i]<0))
901 {sciprint(_("overflow error"));
904 else {y[i]=(unsigned short)(u[i]);}
909 unsigned char *y = NULL;
910 u=Getint32InPortPtrs(block,1);
911 y=Getuint8OutPortPtrs(block,1);
914 {if ((u[i]>=k) | (u[i]<0))
916 {sciprint(_("overflow error"));
919 else {y[i]=(unsigned char)(u[i]);}
925 u=Getint16InPortPtrs(block,1);
926 y=Getint8OutPortPtrs(block,1);
929 {if ((u[i]>k/2-1) | (u[i]<-(k/2)))
931 {sciprint(_("overflow error"));
934 else {y[i]=(char)(u[i]);}
939 unsigned long *y = NULL;
940 u=Getint16InPortPtrs(block,1);
941 y=Getuint32OutPortPtrs(block,1);
945 {sciprint(_("overflow error"));
948 else y[i]=(unsigned long)u[i];}
952 unsigned short *y = NULL;
953 u=Getint16InPortPtrs(block,1);
954 y=Getuint16OutPortPtrs(block,1);
958 {sciprint(_("overflow error"));
961 else {y[i]=(unsigned short)(u[i]);}
966 unsigned char *y = NULL;
967 u=Getint16InPortPtrs(block,1);
968 y=Getuint8OutPortPtrs(block,1);
971 {if (((u[i]>=k) | (u[i]<0))& (flag==1))
973 {sciprint(_("overflow error"));
976 else {y[i]=(unsigned char)(u[i]);}
981 unsigned long *y = NULL;
982 u=Getint8InPortPtrs(block,1);
983 y=Getuint32OutPortPtrs(block,1);
987 {sciprint(_("overflow error"));
990 else y[i]=(unsigned long)u[i];}
994 unsigned short *y = NULL;
995 u=Getint8InPortPtrs(block,1);
996 y=Getuint16OutPortPtrs(block,1);
1000 {sciprint(_("overflow error"));
1001 set_block_error(-4);
1003 else {y[i]=(unsigned short)(u[i]);}
1008 unsigned char *y = NULL;
1009 u=Getint8InPortPtrs(block,1);
1010 y=Getuint8OutPortPtrs(block,1);
1014 {sciprint(_("overflow error"));
1015 set_block_error(-4);
1017 else {y[i]=(unsigned char)(u[i]);}
1022 unsigned long *u = NULL;
1023 u=Getuint32InPortPtrs(block,1);
1024 y=Getint32OutPortPtrs(block,1);
1029 {sciprint(_("overflow error"));
1030 set_block_error(-4);
1032 else {y[i]=(long)(u[i]);}
1036 unsigned long *u = NULL;
1038 u=Getuint32InPortPtrs(block,1);
1039 y=Getint16OutPortPtrs(block,1);
1044 {sciprint(_("overflow error"));
1045 set_block_error(-4);
1047 else {y[i]=(short)(u[i]);}
1051 unsigned long *u = NULL;
1053 u=Getuint32InPortPtrs(block,1);
1054 y=Getint8OutPortPtrs(block,1);
1059 {sciprint(_("overflow error"));
1060 set_block_error(-4);
1062 else {y[i]=(char)(u[i]);}
1066 unsigned long *u = NULL;
1067 unsigned short *y = NULL;
1068 u=Getuint32InPortPtrs(block,1);
1069 y=Getuint16OutPortPtrs(block,1);
1074 {sciprint(_("overflow error"));
1075 set_block_error(-4);
1077 else {y[i]=(unsigned short)(u[i]);}
1081 unsigned long *u = NULL;
1082 unsigned char *y = NULL;
1083 u=Getuint32InPortPtrs(block,1);
1084 y=Getuint8OutPortPtrs(block,1);
1089 {sciprint(_("overflow error"));
1090 set_block_error(-4);
1092 else {y[i]=(unsigned char)(u[i]);}
1096 unsigned short *u = NULL;
1098 u=Getuint16InPortPtrs(block,1);
1099 y=Getint16OutPortPtrs(block,1);
1104 {sciprint(_("overflow error"));
1105 set_block_error(-4);
1107 else {y[i]=(short)(u[i]);}
1111 unsigned short *u = NULL;
1113 u=Getuint16InPortPtrs(block,1);
1114 y=Getint8OutPortPtrs(block,1);
1119 {sciprint(_("overflow error"));
1120 set_block_error(-4);
1122 else {y[i]=(char)(u[i]);}
1126 unsigned short *u = NULL;
1127 unsigned char *y = NULL;
1128 u=Getuint16InPortPtrs(block,1);
1129 y=Getuint8OutPortPtrs(block,1);
1134 {sciprint(_("overflow error"));
1135 set_block_error(-4);
1137 else {y[i]=(unsigned char)(u[i]);}
1141 unsigned char *u = NULL;
1143 u=Getuint8InPortPtrs(block,1);
1144 y=Getint8OutPortPtrs(block,1);
1149 {sciprint(_("overflow error"));
1150 set_block_error(-4);
1152 else {y[i]=(char)(u[i]);}
1158 /*--------------------------------------------------------------------------*/