Browse Source

fix Tars.h compiler warning

ruanshudong 2 years ago
parent
commit
0462a66d53
1 changed files with 3 additions and 3 deletions
  1. 3 3
      servant/tup/Tars.h

+ 3 - 3
servant/tup/Tars.h

@@ -1274,8 +1274,8 @@ public:
 					break;
 				default:
 				{
-					char s[64];
-					snprintf(s, sizeof(s), "read 'Float' type mismatch, tag: %d, get type: %d, headTag: %d.", tag, headType, headTag);
+					char s[96];
+					snprintf(s, sizeof(s), "read 'Float' type mismatch, tag: %d, get type: %d, headTag: %d", tag, headType, headTag);
 					throw TarsDecodeMismatch(s);
 				}
 			}
@@ -1310,7 +1310,7 @@ public:
 					break;
 				default:
 				{
-					char s[64];
+					char s[96];
 					snprintf(s, sizeof(s), "read 'Double' type mismatch, tag: %d, get type: %d, headType: %d.", tag, headType,headTag);
 					throw TarsDecodeMismatch(s);
 				}