mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 15:18:05 +02:00
2db05e4bbb
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14590 3c298f89-4303-0410-b956-a3cf2f4a3e73
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
--- a/editors/awk.c
|
|
+++ b/editors/awk.c
|
|
@@ -2041,27 +2041,27 @@ static var *exec_builtin(node *op, var *
|
|
break;
|
|
|
|
case B_an:
|
|
- setvar_i(res, (long)getvar_i(av[0]) & (long)getvar_i(av[1]));
|
|
+ setvar_i(res, (unsigned long)getvar_i(av[0]) & (unsigned long)getvar_i(av[1]));
|
|
break;
|
|
|
|
case B_co:
|
|
- setvar_i(res, ~(long)getvar_i(av[0]));
|
|
+ setvar_i(res, ~(unsigned long)getvar_i(av[0]));
|
|
break;
|
|
|
|
case B_ls:
|
|
- setvar_i(res, (long)getvar_i(av[0]) << (long)getvar_i(av[1]));
|
|
+ setvar_i(res, (unsigned long)getvar_i(av[0]) << (unsigned long)getvar_i(av[1]));
|
|
break;
|
|
|
|
case B_or:
|
|
- setvar_i(res, (long)getvar_i(av[0]) | (long)getvar_i(av[1]));
|
|
+ setvar_i(res, (unsigned long)getvar_i(av[0]) | (unsigned long)getvar_i(av[1]));
|
|
break;
|
|
|
|
case B_rs:
|
|
- setvar_i(res, (long)((unsigned long)getvar_i(av[0]) >> (unsigned long)getvar_i(av[1])));
|
|
+ setvar_i(res, (unsigned long)getvar_i(av[0]) >> (unsigned long)getvar_i(av[1]));
|
|
break;
|
|
|
|
case B_xo:
|
|
- setvar_i(res, (long)getvar_i(av[0]) ^ (long)getvar_i(av[1]));
|
|
+ setvar_i(res, (unsigned long)getvar_i(av[0]) ^ (unsigned long)getvar_i(av[1]));
|
|
break;
|
|
|
|
case B_lo:
|