Content-Length: 271967 | pFad | http://github.com/postgrespro/postgres/commit/9a84f2947bf9345ad6b93ba37da63633649eaea8
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117d260 commit 9a84f29Copy full SHA for 9a84f29
src/backend/utils/adt/numeric.c
@@ -4245,7 +4245,15 @@ int64_div_fast_to_numeric(int64 val1, int log10val2)
4245
*/
4246
if (m > 0)
4247
{
4248
+#if DEC_DIGITS == 4
4249
static int pow10[] = {1, 10, 100, 1000};
4250
+#elif DEC_DIGITS == 2
4251
+ static int pow10[] = {1, 10};
4252
+#elif DEC_DIGITS == 1
4253
+ static int pow10[] = {1};
4254
+#else
4255
+#error unsupported NBASE
4256
+#endif
4257
4258
StaticAssertDecl(lengthof(pow10) == DEC_DIGITS, "mismatch with DEC_DIGITS");
4259
Fetched URL: http://github.com/postgrespro/postgres/commit/9a84f2947bf9345ad6b93ba37da63633649eaea8
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments