mojoshader.c
branchtrunk
changeset 181 346263640ccc
parent 180 e25cd1bad94d
child 182 09e287c6a111
--- a/mojoshader.c	Tue Apr 22 02:50:37 2008 -0400
+++ b/mojoshader.c	Tue Apr 22 04:41:46 2008 -0400
@@ -1662,12 +1662,12 @@
     const char *result_shift_str = "";
     switch (arg->result_shift)
     {
-        case 0x1: result_shift_str = " * 2"; break;
-        case 0x2: result_shift_str = " * 4"; break;
-        case 0x3: result_shift_str = " * 8"; break;
-        case 0xD: result_shift_str = " / 8"; break;
-        case 0xE: result_shift_str = " / 4"; break;
-        case 0xF: result_shift_str = " / 2"; break;
+        case 0x1: result_shift_str = " * 2.0"; break;
+        case 0x2: result_shift_str = " * 4.0"; break;
+        case 0x3: result_shift_str = " * 8.0"; break;
+        case 0xD: result_shift_str = " / 8.0"; break;
+        case 0xE: result_shift_str = " / 4.0"; break;
+        case 0xF: result_shift_str = " / 2.0"; break;
     } // switch
     need_parens |= (result_shift_str[0] != '\0');